diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-07-20 05:40:13 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-07-20 05:40:13 +0000 |
commit | 680f2098f186224aefb78df78c3cdefbf232d315 (patch) | |
tree | 5c84fcfcf96d5888a0ddffdf88cbf10c4bc82c11 /GNUmakefile | |
parent | 376c808b503dbee0991b5eb4027ca6e4f4ece702 (diff) |
With gcc4, turn off unnecessart pointer sign warnings.
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/GNUmakefile b/GNUmakefile index aaa57f55..d176f153 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,4 +1,4 @@ -# $Id: GNUmakefile,v 1.109 2009-07-14 06:47:12 nicm Exp $ +# $Id: GNUmakefile,v 1.110 2009-07-20 05:40:12 nicm Exp $ .PHONY: clean @@ -11,20 +11,23 @@ CFLAGS+= -DBUILD="\"$(VERSION)\"" LDFLAGS+= -L/usr/local/lib LIBS+= -lcurses +ifdef FDEBUG +CFLAGS+= -g -ggdb -DDEBUG +CFLAGS+= -Wno-long-long -Wall -W -Wnested-externs -Wformat=2 +CFLAGS+= -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations +CFLAGS+= -Wwrite-strings -Wshadow -Wpointer-arith -Wsign-compare +CFLAGS+= -Wundef -Wbad-function-cast -Winline -Wcast-align +endif + # This sort of sucks but gets rid of the stupid warning and should work on # most platforms... ifeq ($(shell (LC_ALL=C $(CC) -v 2>&1|awk '/gcc version 4/') || true), ) CPPFLAGS:= -I. -I- $(CPPFLAGS) else CPPFLAGS:= -iquote. $(CPPFLAGS) -endif - ifdef FDEBUG -CFLAGS+= -g -ggdb -DDEBUG -CFLAGS+= -Wno-long-long -Wall -W -Wnested-externs -Wformat=2 -CFLAGS+= -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -CFLAGS+= -Wwrite-strings -Wshadow -Wpointer-arith -Wsign-compare -CFLAGS+= -Wundef -Wbad-function-cast -Winline -Wcast-align +CFLAGS+= -Wno-pointer-sign +endif endif PREFIX?= /usr/local |