diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2006-02-22 22:53:49 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2006-02-22 22:53:49 +0000 |
commit | 6204abdae2f51fd8e23702532c3a4e93002396e1 (patch) | |
tree | c3e6c9f1df9f8d9321bbbd0d8108548d64f706dd /Makefile | |
parent | fdd33866b438de919356cb5bb30a811ecb0e66f9 (diff) |
merge rizzo's patch to make compiler warnings stop the build, and fix a bunch of warnings found
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10805 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -233,6 +233,10 @@ endif INCLUDE+=-Iinclude -I../include ASTCFLAGS+=-pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations $(DEBUG) $(INCLUDE) -D_REENTRANT -D_GNU_SOURCE #-DMAKE_VALGRIND_HAPPY ASTCFLAGS+=$(OPTIMIZE) +ASTCFLAGS+= -Werror -Wunused +ifeq ($(shell gcc -v 2>&1 | grep 'gcc version' | cut -f3 -d' ' | cut -f1 -d.),4) +ASTCFLAGS+= -Wno-pointer-sign +endif ASTOBJ=-o asterisk ifeq ($(findstring BSD,$(OSARCH)),BSD) |