From 6204abdae2f51fd8e23702532c3a4e93002396e1 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Wed, 22 Feb 2006 22:53:49 +0000 Subject: 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 --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b9819b436..27529e0dd 100644 --- a/Makefile +++ b/Makefile @@ -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) -- cgit v1.2.3