aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.rules
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-06-19 12:40:30 +0000
committerDuncan Sands <baldrick@free.fr>2009-06-19 12:40:30 +0000
commit7d9ea9410b263da71703469bcc1378025df6377b (patch)
tree2db2080f804c0ec7d22d820940704aac9f0eaa40 /Makefile.rules
parent58f4ce8c91489e13606982c68ec7e6329d91d039 (diff)
downloadexternal_llvm-7d9ea9410b263da71703469bcc1378025df6377b.zip
external_llvm-7d9ea9410b263da71703469bcc1378025df6377b.tar.gz
external_llvm-7d9ea9410b263da71703469bcc1378025df6377b.tar.bz2
Since -Wno-long-long is ignored without -pedantic,
place it with -pedantic. Remove -Wunused since it is implied by -Wall. Group -Wno-unused-parameter with -Wall -W since it is the combination of these two that turns on -Wunused-parameter. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73765 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 94d8e98..9325ca4 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -519,10 +519,10 @@ endif
#----------------------------------------------------------
ifndef NO_PEDANTIC
-CompileCommonOpts += -pedantic
+CompileCommonOpts += -pedantic -Wno-long-long
endif
-CompileCommonOpts += -Wall -W -Wwrite-strings -Wno-long-long \
- -Wunused -Wno-unused-parameter $(EXTRA_OPTIONS)
+CompileCommonOpts += -Wall -W -Wno-unused-parameter -Wwrite-strings \
+ $(EXTRA_OPTIONS)
ifeq ($(OS),HP-UX)
CompileCommonOpts := -D_REENTRANT -D_HPUX_SOURCE