From: Luigi Rizzo Date: Thu, 28 Jun 2007 18:34:07 +0000 (+0000) Subject: Add -Wdeclaration-after-statement to AST_DEVMODE X-Git-Tag: 1.6.0-beta1~3^2~2216 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21747697e5eb77bdec4e1339bebaf332aba4bfdf;p=thirdparty%2Fasterisk.git Add -Wdeclaration-after-statement to AST_DEVMODE to detect declarations in the middle of a block. Approved by: Russel, Kevin The fallout will be fixed in separate commits. I am doing this only on trunk only for the time being, because 1.4 still requires a bit more polishing to give a clean compile (at least on FreeBSD). git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@72452 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/Makefile b/Makefile index c4dc84ce96..a53890d40c 100644 --- a/Makefile +++ b/Makefile @@ -193,7 +193,7 @@ ASTCFLAGS+=-pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declar ASTCFLAGS+=-include $(ASTTOPDIR)/include/asterisk/autoconfig.h ifeq ($(AST_DEVMODE),yes) - ASTCFLAGS+=-Werror -Wunused -Wundef + ASTCFLAGS+=-Werror -Wunused -Wundef -Wdeclaration-after-statement endif ifneq ($(findstring BSD,$(OSARCH)),)