For PR786:
Turn -pedantic and -Wno-long-long compile flags on by default. In a few places, avoid the warnings by removing these options in the local makefile. One notable exception: lib/Target/CBackend/Writer.cpp. These warnings are left on as a reminder to developers to clean them up. llvm-svn: 28614
This commit is contained in:
parent
08f1030658
commit
a62f097c96
|
@ -357,7 +357,8 @@ endif
|
|||
# Options To Invoke Tools
|
||||
#----------------------------------------------------------
|
||||
|
||||
CompileCommonOpts := -Wall -W -Wwrite-strings -Wno-unused
|
||||
CompileCommonOpts := -Wall -W -Wwrite-strings -Wno-unused -Wno-long-long \
|
||||
-pedantic
|
||||
|
||||
ifeq ($(OS),HP-UX)
|
||||
CompileCommonOpts := -D_REENTRANT -D_HPUX_SOURCE
|
||||
|
|
|
@ -14,3 +14,6 @@ BUILD_ARCHIVE = 1
|
|||
EXTRA_DIST = Unix Win32 README.txt
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
||||
|
||||
CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
|
||||
CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
|
||||
|
|
|
@ -9,5 +9,4 @@
|
|||
|
||||
LEVEL = ../../..
|
||||
LIBRARYNAME = LLVMCBackend
|
||||
CXXFLAGS += -pedantic -Wno-long-long
|
||||
include $(LEVEL)/Makefile.common
|
||||
|
|
|
@ -12,3 +12,6 @@ DONT_BUILD_RELINKED = 1
|
|||
MODULE_NAME = stkr_runtime
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
||||
|
||||
CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
|
||||
CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
|
||||
|
|
|
@ -19,3 +19,5 @@ LOADABLE_MODULE=1
|
|||
#
|
||||
include $(LEVEL)/Makefile.common
|
||||
|
||||
CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
|
||||
CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
|
||||
|
|
|
@ -15,3 +15,5 @@ BYTECODE_DESTINATION = $(CFERuntimeLibDir)
|
|||
|
||||
include $(LEVEL)/Makefile.common
|
||||
|
||||
CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
|
||||
CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
|
||||
|
|
Loading…
Reference in New Issue