[asterisk-commits] russell: branch 1.4 r50994 - /branches/1.4/Makefile.rules

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Jan 15 16:49:49 MST 2007


Author: russell
Date: Mon Jan 15 17:49:48 2007
New Revision: 50994

URL: http://svn.digium.com/view/asterisk?view=rev&rev=50994
Log:
Filter out a few CFLAGS that are not valid CXXFLAGS.

Modified:
    branches/1.4/Makefile.rules

Modified: branches/1.4/Makefile.rules
URL: http://svn.digium.com/view/asterisk/branches/1.4/Makefile.rules?view=diff&rev=50994&r1=50993&r2=50994
==============================================================================
--- branches/1.4/Makefile.rules (original)
+++ branches/1.4/Makefile.rules Mon Jan 15 17:49:48 2007
@@ -55,9 +55,9 @@
 %.oo: %.cc
 	$(ECHO_PREFIX) echo "   [CXX] $< -> $@"
 ifeq ($(AST_DEVMODE),yes)
-	$(CMD_PREFIX) $(CXX) -o $@ -c $< $(PTHREAD_CFLAGS) $(ASTCFLAGS) -MMD -MT $@ -MF .$(subst /,_,$@).d -MP
+	$(CMD_PREFIX) $(CXX) -o $@ -c $< $(PTHREAD_CFLAGS) $(filter-out -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations,$(ASTCFLAGS)) -MMD -MT $@ -MF .$(subst /,_,$@).d -MP
 else
-	$(CMD_PREFIX) $(CXX) -o $@ -c $< $(PTHREAD_CFLAGS) $(ASTCFLAGS)
+	$(CMD_PREFIX) $(CXX) -o $@ -c $< $(PTHREAD_CFLAGS) $(filter-out -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations,$(ASTCFLAGS))
 endif
 
 %.c: %.y



More information about the asterisk-commits mailing list