[asterisk-commits] mjordan: branch 13 r433721 - in /branches/13: ./ Makefile.rules

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Mar 29 20:56:36 CDT 2015


Author: mjordan
Date: Sun Mar 29 20:56:34 2015
New Revision: 433721

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=433721
Log:
clang compiler warnings: Ignore -Wunused-command-line-argument

Asterisk's build system has a tendency to pass include directives for libraries
to everything compiled within a particular group of source files. This means
we pass the header for libxml2 to things that don't necessarily need it. As a
result, we ignore this particular warning.

Review: https://reviewboard.asterisk.org/r/4545/

ASTERISK-24917
Reported by: dkdegroot
patches:
  rb4545.patch submitted by dkdegroot (License 6600)
........

Merged revisions 433720 from http://svn.asterisk.org/svn/asterisk/branches/11

Modified:
    branches/13/   (props changed)
    branches/13/Makefile.rules

Propchange: branches/13/
------------------------------------------------------------------------------
Binary property 'branch-11-merged' - no diff available.

Modified: branches/13/Makefile.rules
URL: http://svnview.digium.com/svn/asterisk/branches/13/Makefile.rules?view=diff&rev=433721&r1=433720&r2=433721
==============================================================================
--- branches/13/Makefile.rules (original)
+++ branches/13/Makefile.rules Sun Mar 29 20:56:34 2015
@@ -101,10 +101,17 @@
 
 %.o: %.i
 	$(ECHO_PREFIX) echo "   [CCi] $< -> $@"
+ifneq ($(AST_CLANG_BLOCKS),)
+ifeq ($(COMPILE_DOUBLE),yes)
+	$(CMD_PREFIX) $(CC) -o /dev/null -c $< $(CC_CFLAGS) $(OPTIMIZE) -Wno-unused-command-line-argument
+endif
+	$(CMD_PREFIX) $(CC) -o $@ -c $< $(CC_CFLAGS) $(_ASTCFLAGS_COVERAGE) -Wno-unused-command-line-argument
+else
 ifeq ($(COMPILE_DOUBLE),yes)
 	$(CMD_PREFIX) $(CC) -o /dev/null -c $< $(CC_CFLAGS) $(OPTIMIZE)
 endif
 	$(CMD_PREFIX) $(CC) -o $@ -c $< $(CC_CFLAGS) $(_ASTCFLAGS_COVERAGE)
+endif
 
 ifneq ($(COMPILE_DOUBLE),yes)
 %.o: %.c




More information about the asterisk-commits mailing list