mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-23 16:43:11 +01:00
Turn off stupid warnings when using Sun CC.
This commit is contained in:
parent
0614ca434a
commit
1fdf489cae
10
GNUmakefile
10
GNUmakefile
@ -1,4 +1,4 @@
|
||||
# $Id: GNUmakefile,v 1.116 2009-09-20 22:06:34 tcunha Exp $
|
||||
# $Id: GNUmakefile,v 1.117 2009-10-15 08:15:06 nicm Exp $
|
||||
|
||||
.PHONY: clean
|
||||
|
||||
@ -6,11 +6,17 @@ VERSION= 1.1
|
||||
|
||||
FDEBUG= 1
|
||||
|
||||
CC?= gcc
|
||||
CC?= cc
|
||||
CFLAGS+= -DBUILD="\"$(VERSION)\""
|
||||
LDFLAGS+= -L/usr/local/lib
|
||||
LIBS+=
|
||||
|
||||
# Sun CC
|
||||
ifneq ($(shell (cc -V 2>&1|awk '/Sun C/' || true)), )
|
||||
CFLAGS+=-erroff=E_EMPTY_DECLARATION
|
||||
FDEBUG=
|
||||
endif
|
||||
|
||||
ifdef FDEBUG
|
||||
CFLAGS+= -g -ggdb -DDEBUG
|
||||
CFLAGS+= -Wno-long-long -Wall -W -Wnested-externs -Wformat=2
|
||||
|
Loading…
Reference in New Issue
Block a user