[asterisk-dev] suggestion - add -Wdeclaration-after-statement to AST_DEVMODE builds
Russell Bryant
russell at digium.com
Mon Jun 25 08:52:26 CDT 2007
Luigi Rizzo wrote:
> I'd like to suggest the following patch to the top level asterisk Makefile:
>
> Index: Makefile
> ===================================================================
> --- Makefile (revision 71337)
> +++ Makefile (working copy)
> @@ -193,6 +193,6 @@
> ASTCFLAGS+=-include $(ASTTOPDIR)/include/asterisk/autoconfig.h
>
> ifeq ($(AST_DEVMODE),yes)
> - ASTCFLAGS+=-Werror -Wunused -Wundef
> + ASTCFLAGS+=-Werror -Wunused -Wundef -Wdeclaration-after-statement
> endif
That change is fine with me.
--
Russell Bryant
Software Engineer
Digium, Inc.
More information about the asterisk-dev
mailing list