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:
Reid Spencer 2006-06-01 01:55:21 +00:00
parent 08f1030658
commit a62f097c96
6 changed files with 12 additions and 2 deletions

View File

@ -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

View File

@ -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))

View File

@ -9,5 +9,4 @@
LEVEL = ../../..
LIBRARYNAME = LLVMCBackend
CXXFLAGS += -pedantic -Wno-long-long
include $(LEVEL)/Makefile.common

View File

@ -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))

View File

@ -19,3 +19,5 @@ LOADABLE_MODULE=1
#
include $(LEVEL)/Makefile.common
CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))

View File

@ -15,3 +15,5 @@ BYTECODE_DESTINATION = $(CFERuntimeLibDir)
include $(LEVEL)/Makefile.common
CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))