mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
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
89a048bb1a
commit
cf025eb201
@ -357,7 +357,8 @@ endif
|
|||||||
# Options To Invoke Tools
|
# 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)
|
ifeq ($(OS),HP-UX)
|
||||||
CompileCommonOpts := -D_REENTRANT -D_HPUX_SOURCE
|
CompileCommonOpts := -D_REENTRANT -D_HPUX_SOURCE
|
||||||
|
@ -14,3 +14,6 @@ BUILD_ARCHIVE = 1
|
|||||||
EXTRA_DIST = Unix Win32 README.txt
|
EXTRA_DIST = Unix Win32 README.txt
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
|
||||||
|
CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
|
||||||
|
CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
|
||||||
|
@ -9,5 +9,4 @@
|
|||||||
|
|
||||||
LEVEL = ../../..
|
LEVEL = ../../..
|
||||||
LIBRARYNAME = LLVMCBackend
|
LIBRARYNAME = LLVMCBackend
|
||||||
CXXFLAGS += -pedantic -Wno-long-long
|
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
@ -12,3 +12,6 @@ DONT_BUILD_RELINKED = 1
|
|||||||
MODULE_NAME = stkr_runtime
|
MODULE_NAME = stkr_runtime
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
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
|
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
|
include $(LEVEL)/Makefile.common
|
||||||
|
|
||||||
|
CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
|
||||||
|
CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user