summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJason Parker <jparker@digium.com>2007-06-28 21:31:00 +0000
committerJason Parker <jparker@digium.com>2007-06-28 21:31:00 +0000
commit7412b3bf0de4845b57f365ad7a0a1f790aadb5b2 (patch)
tree0febf5617c2e83f8e122673ee15d9b2e19edf087 /Makefile
parentae232491de2be2074ff231c86686d6abfa61684c (diff)
Apparently some builds of gcc don't have declaration-after-statement.
This checks for it in configure, and only uses it if it's available. If it's wrong, somebody please yell at me and tell me why. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@72539 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a53890d40..fb540468c 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 -Wdeclaration-after-statement
+ ASTCFLAGS+=-Werror -Wunused -Wundef $(AST_DECLARATION_AFTER_STATEMENT)
endif
ifneq ($(findstring BSD,$(OSARCH)),)