Since -Wno-long-long is ignored without -pedantic,
authorDuncan Sands <baldrick@free.fr>
Fri, 19 Jun 2009 12:40:30 +0000 (12:40 +0000)
committerDuncan Sands <baldrick@free.fr>
Fri, 19 Jun 2009 12:40:30 +0000 (12:40 +0000)
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

Makefile.rules

index 94d8e98c16b24b59cc2dc7fe1ef1f495e7f7f492..9325ca4b5d1b8f75f9c10232143c712598ce0079 100644 (file)
@@ -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