From 4e9c45097d73081ffc268cbced9569be0e3d093d Mon Sep 17 00:00:00 2001 From: rizzo Date: Thu, 28 Jun 2007 19:05:59 +0000 Subject: Add -Wdeclaration-after-statement to AST_DEVMODE flags to catch variable declarations in the middle of a block. Fix the few instances of the above spotted out by the compiler. All of this has been already done or is not applicable in trunk, so the merge of this change will be blocked. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@72462 f38db490-d61c-443f-a65b-d21fe96a405b --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d8ec7eb3b..9e2e15837 100644 --- a/Makefile +++ b/Makefile @@ -192,7 +192,7 @@ ASTCFLAGS+=-pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declar ASTCFLAGS+=-include $(ASTTOPDIR)/include/asterisk/autoconfig.h ifeq ($(AST_DEVMODE),yes) - ASTCFLAGS+=-Werror -Wunused + ASTCFLAGS+=-Werror -Wunused -Wdeclaration-after-statement endif ifneq ($(findstring BSD,$(OSARCH)),) -- cgit v1.2.3