diff options
author | Matthew Jordan <mjordan@digium.com> | 2015-03-30 01:56:34 +0000 |
---|---|---|
committer | Matthew Jordan <mjordan@digium.com> | 2015-03-30 01:56:34 +0000 |
commit | 47eeb67e147d26298d1350ea539bb9666259d6aa (patch) | |
tree | a2db3fb725fad0432ebc3aa03afbb1521e9a850c | |
parent | dbb4d6f9e7a820d3ab95550fc4d392c97c098f2f (diff) |
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
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@433721 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | Makefile.rules | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules index 41205bc87..a24cc72b7 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -101,10 +101,17 @@ endif %.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 |