[asterisk-commits] rizzo: trunk r72452 - /trunk/Makefile

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jun 28 13:34:07 CDT 2007


Author: rizzo
Date: Thu Jun 28 13:34:07 2007
New Revision: 72452

URL: http://svn.digium.com/view/asterisk?view=rev&rev=72452
Log:
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).


Modified:
    trunk/Makefile

Modified: trunk/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/Makefile?view=diff&rev=72452&r1=72451&r2=72452
==============================================================================
--- trunk/Makefile (original)
+++ trunk/Makefile Thu Jun 28 13:34:07 2007
@@ -193,7 +193,7 @@
 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)),)




More information about the asterisk-commits mailing list