mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-13 09:33:50 +00: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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28614 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dee05112a6
commit
72f42bbc9b
@ -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…
x
Reference in New Issue
Block a user