Skip to content

Commit

Permalink
For PR786:
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Reid Spencer committed Jun 1, 2006
1 parent dee0511 commit 72f42bb
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile.rules
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions lib/System/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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))
1 change: 0 additions & 1 deletion lib/Target/CBackend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@

LEVEL = ../../..
LIBRARYNAME = LLVMCBackend
CXXFLAGS += -pedantic -Wno-long-long
include $(LEVEL)/Makefile.common
3 changes: 3 additions & 0 deletions projects/Stacker/lib/runtime/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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))
2 changes: 2 additions & 0 deletions projects/sample/lib/sample/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ LOADABLE_MODULE=1
#
include $(LEVEL)/Makefile.common

CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
2 changes: 2 additions & 0 deletions runtime/libdummy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ BYTECODE_DESTINATION = $(CFERuntimeLibDir)

include $(LEVEL)/Makefile.common

CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))

0 comments on commit 72f42bb

Please sign in to comment.