mirror of
https://github.com/tmux/tmux.git
synced 2025-01-15 05:09:04 +00: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
|
.PHONY: clean
|
||||||
|
|
||||||
@ -6,11 +6,17 @@ VERSION= 1.1
|
|||||||
|
|
||||||
FDEBUG= 1
|
FDEBUG= 1
|
||||||
|
|
||||||
CC?= gcc
|
CC?= cc
|
||||||
CFLAGS+= -DBUILD="\"$(VERSION)\""
|
CFLAGS+= -DBUILD="\"$(VERSION)\""
|
||||||
LDFLAGS+= -L/usr/local/lib
|
LDFLAGS+= -L/usr/local/lib
|
||||||
LIBS+=
|
LIBS+=
|
||||||
|
|
||||||
|
# Sun CC
|
||||||
|
ifneq ($(shell (cc -V 2>&1|awk '/Sun C/' || true)), )
|
||||||
|
CFLAGS+=-erroff=E_EMPTY_DECLARATION
|
||||||
|
FDEBUG=
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef FDEBUG
|
ifdef FDEBUG
|
||||||
CFLAGS+= -g -ggdb -DDEBUG
|
CFLAGS+= -g -ggdb -DDEBUG
|
||||||
CFLAGS+= -Wno-long-long -Wall -W -Wnested-externs -Wformat=2
|
CFLAGS+= -Wno-long-long -Wall -W -Wnested-externs -Wformat=2
|
||||||
|
Loading…
Reference in New Issue
Block a user