Kaydet (Commit) 6904e7d8 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Define LIBO_WERROR when warnings are errors

üst bbec6182
...@@ -97,8 +97,8 @@ gb_OBJCXXFLAGS := -x objective-c++ $(gb_OBJC_OBJCXX_COMMON_FLAGS) ...@@ -97,8 +97,8 @@ gb_OBJCXXFLAGS := -x objective-c++ $(gb_OBJC_OBJCXX_COMMON_FLAGS)
gb_OBJCFLAGS := -x objective-c $(gb_OBJC_OBJCXX_COMMON_FLAGS) gb_OBJCFLAGS := -x objective-c $(gb_OBJC_OBJCXX_COMMON_FLAGS)
ifneq ($(EXTERNAL_WARNINGS_NOT_ERRORS),TRUE) ifneq ($(EXTERNAL_WARNINGS_NOT_ERRORS),TRUE)
gb_CFLAGS_WERROR := -Werror gb_CFLAGS_WERROR := -Werror -DLIBO_WERROR
gb_CXXFLAGS_WERROR := -Werror gb_CXXFLAGS_WERROR := -Werror -DLIBO_WERROR
endif endif
gb_LinkTarget_EXCEPTIONFLAGS := \ gb_LinkTarget_EXCEPTIONFLAGS := \
......
...@@ -116,8 +116,8 @@ gb_OBJCXXFLAGS := -x objective-c++ -fobjc-exceptions ...@@ -116,8 +116,8 @@ gb_OBJCXXFLAGS := -x objective-c++ -fobjc-exceptions
gb_OBJCFLAGS := -x objective-c gb_OBJCFLAGS := -x objective-c
ifneq ($(EXTERNAL_WARNINGS_NOT_ERRORS),TRUE) ifneq ($(EXTERNAL_WARNINGS_NOT_ERRORS),TRUE)
gb_CFLAGS_WERROR := -Werror gb_CFLAGS_WERROR := -Werror -DLIBO_WERROR
gb_CXXFLAGS_WERROR := -Werror gb_CXXFLAGS_WERROR := -Werror -DLIBO_WERROR
endif endif
ifeq ($(ENABLE_LTO),TRUE) ifeq ($(ENABLE_LTO),TRUE)
......
...@@ -120,8 +120,8 @@ gb_CXXFLAGS += -fno-strict-aliasing ...@@ -120,8 +120,8 @@ gb_CXXFLAGS += -fno-strict-aliasing
endif endif
ifneq ($(EXTERNAL_WARNINGS_NOT_ERRORS),TRUE) ifneq ($(EXTERNAL_WARNINGS_NOT_ERRORS),TRUE)
gb_CFLAGS_WERROR := -Werror gb_CFLAGS_WERROR := -Werror -DLIBO_WERROR
gb_CXXFLAGS_WERROR := -Werror gb_CXXFLAGS_WERROR := -Werror -DLIBO_WERROR
endif endif
ifeq ($(HAVE_CXX0X),TRUE) ifeq ($(HAVE_CXX0X),TRUE)
......
...@@ -181,8 +181,8 @@ gb_STDLIBS := \ ...@@ -181,8 +181,8 @@ gb_STDLIBS := \
advapi32 \ advapi32 \
ifneq ($(EXTERNAL_WARNINGS_NOT_ERRORS),TRUE) ifneq ($(EXTERNAL_WARNINGS_NOT_ERRORS),TRUE)
gb_CFLAGS_WERROR := -WX gb_CFLAGS_WERROR := -WX -DLIBO_WERROR
gb_CXXFLAGS_WERROR := -WX gb_CXXFLAGS_WERROR := -WX -DLIBO_WERROR
endif endif
gb_LinkTarget_EXCEPTIONFLAGS := \ gb_LinkTarget_EXCEPTIONFLAGS := \
......
...@@ -91,8 +91,8 @@ gb_CXXFLAGS := \ ...@@ -91,8 +91,8 @@ gb_CXXFLAGS := \
-pipe \ -pipe \
ifneq ($(EXTERNAL_WARNINGS_NOT_ERRORS),TRUE) ifneq ($(EXTERNAL_WARNINGS_NOT_ERRORS),TRUE)
gb_CFLAGS_WERROR := -Werror gb_CFLAGS_WERROR := -Werror -DLIBO_WERROR
gb_CXXFLAGS_WERROR := -Werror gb_CXXFLAGS_WERROR := -Werror -DLIBO_WERROR
endif endif
ifneq ($(SYSBASE),) ifneq ($(SYSBASE),)
......
...@@ -138,7 +138,7 @@ CFLAGSWARNCXX=$(CFLAGSWARNCC) -Wshadow -Wno-ctor-dtor-privacy \ ...@@ -138,7 +138,7 @@ CFLAGSWARNCXX=$(CFLAGSWARNCC) -Wshadow -Wno-ctor-dtor-privacy \
-Wno-non-virtual-dtor -Woverloaded-virtual -Wno-non-virtual-dtor -Woverloaded-virtual
CFLAGSWALLCC=$(CFLAGSWARNCC) CFLAGSWALLCC=$(CFLAGSWARNCC)
CFLAGSWALLCXX=$(CFLAGSWARNCXX) CFLAGSWALLCXX=$(CFLAGSWARNCXX)
CFLAGSWERRCC=-Werror CFLAGSWERRCC=-Werror -DLIBO_WERROR
COMPILER_WARN_ERRORS=TRUE COMPILER_WARN_ERRORS=TRUE
......
...@@ -95,7 +95,7 @@ CFLAGSWARNCC=-Wall -Wendif-labels ...@@ -95,7 +95,7 @@ CFLAGSWARNCC=-Wall -Wendif-labels
CFLAGSWARNCXX=$(CFLAGSWARNCC) -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor CFLAGSWARNCXX=$(CFLAGSWARNCC) -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor
CFLAGSWALLCC=$(CFLAGSWARNCC) CFLAGSWALLCC=$(CFLAGSWARNCC)
CFLAGSWALLCXX=$(CFLAGSWARNCXX) CFLAGSWALLCXX=$(CFLAGSWARNCXX)
CFLAGSWERRCC=-Werror CFLAGSWERRCC=-Werror -DLIBO_WERROR
LINK*=$(CXX) LINK*=$(CXX)
LINKC*=$(CC) LINKC*=$(CC)
......
...@@ -149,7 +149,7 @@ CFLAGSWARNCC=-Wall -Wendif-labels ...@@ -149,7 +149,7 @@ CFLAGSWARNCC=-Wall -Wendif-labels
CFLAGSWARNCXX=$(CFLAGSWARNCC) -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor CFLAGSWARNCXX=$(CFLAGSWARNCC) -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor
CFLAGSWALLCC=$(CFLAGSWARNCC) CFLAGSWALLCC=$(CFLAGSWARNCC)
CFLAGSWALLCXX=$(CFLAGSWARNCXX) CFLAGSWALLCXX=$(CFLAGSWARNCXX)
CFLAGSWERRCC=-Werror CFLAGSWERRCC=-Werror -DLIBO_WERROR
# All modules on this platform compile without warnings. # All modules on this platform compile without warnings.
# If you need to set MODULES_WITH_WARNINGS here, comment # If you need to set MODULES_WITH_WARNINGS here, comment
......
...@@ -100,8 +100,8 @@ CFLAGSWARNCC= ...@@ -100,8 +100,8 @@ CFLAGSWARNCC=
CFLAGSWARNCXX=+w2 -erroff=doubunder,identexpected,inllargeuse,inllargeint,notemsource,reftotemp,truncwarn,wnoretvalue,anonnotype CFLAGSWARNCXX=+w2 -erroff=doubunder,identexpected,inllargeuse,inllargeint,notemsource,reftotemp,truncwarn,wnoretvalue,anonnotype
CFLAGSWALLCC=$(CFLAGSWARNCC) CFLAGSWALLCC=$(CFLAGSWARNCC)
CFLAGSWALLCXX=$(CFLAGSWARNCXX) CFLAGSWALLCXX=$(CFLAGSWARNCXX)
CFLAGSWERRCC=-errwarn=%all CFLAGSWERRCC=-errwarn=%all -DLIBO_WERROR
CFLAGSWERRCXX=-xwe CFLAGSWERRCXX=-xwe -DLIBO_WERROR
# Once all modules on this platform compile without warnings, set # Once all modules on this platform compile without warnings, set
# COMPILER_WARN_ERRORS=TRUE here instead of setting MODULES_WITH_WARNINGS (see # COMPILER_WARN_ERRORS=TRUE here instead of setting MODULES_WITH_WARNINGS (see
......
...@@ -106,8 +106,8 @@ CFLAGSWARNCC= ...@@ -106,8 +106,8 @@ CFLAGSWARNCC=
CFLAGSWARNCXX=+w2 -erroff=doubunder,identexpected,inllargeuse,inllargeint,notemsource,reftotemp,truncwarn,wnoretvalue,anonnotype CFLAGSWARNCXX=+w2 -erroff=doubunder,identexpected,inllargeuse,inllargeint,notemsource,reftotemp,truncwarn,wnoretvalue,anonnotype
CFLAGSWALLCC=$(CFLAGSWARNCC) CFLAGSWALLCC=$(CFLAGSWARNCC)
CFLAGSWALLCXX=$(CFLAGSWARNCXX) CFLAGSWALLCXX=$(CFLAGSWARNCXX)
CFLAGSWERRCC=-errwarn=%all CFLAGSWERRCC=-errwarn=%all -DLIBO_WERROR
CFLAGSWERRCXX=-xwe CFLAGSWERRCXX=-xwe -DLIBO_WERROR
# Once all modules on this platform compile without warnings, set # Once all modules on this platform compile without warnings, set
# COMPILER_WARN_ERRORS=TRUE here instead of setting MODULES_WITH_WARNINGS (see # COMPILER_WARN_ERRORS=TRUE here instead of setting MODULES_WITH_WARNINGS (see
......
...@@ -105,8 +105,8 @@ CFLAGSWARNCC= ...@@ -105,8 +105,8 @@ CFLAGSWARNCC=
CFLAGSWARNCXX=+w2 -erroff=doubunder,identexpected,inllargeuse,inllargeint,notemsource,reftotemp,truncwarn,wnoretvalue,hidef,anonnotype,unassigned,badargtype2w CFLAGSWARNCXX=+w2 -erroff=doubunder,identexpected,inllargeuse,inllargeint,notemsource,reftotemp,truncwarn,wnoretvalue,hidef,anonnotype,unassigned,badargtype2w
CFLAGSWALLCC=$(CFLAGSWARNCC) CFLAGSWALLCC=$(CFLAGSWARNCC)
CFLAGSWALLCXX=$(CFLAGSWARNCXX) CFLAGSWALLCXX=$(CFLAGSWARNCXX)
CFLAGSWERRCC=-errwarn=%all CFLAGSWERRCC=-errwarn=%all -DLIBO_WERROR
CFLAGSWERRCXX=-xwe CFLAGSWERRCXX=-xwe -DLIBO_WERROR
# Once all modules on this platform compile without warnings, set # Once all modules on this platform compile without warnings, set
# COMPILER_WARN_ERRORS=TRUE here instead of setting MODULES_WITH_WARNINGS (see # COMPILER_WARN_ERRORS=TRUE here instead of setting MODULES_WITH_WARNINGS (see
......
...@@ -84,8 +84,8 @@ CFLAGSWARNCXX=$(CFLAGSWARNCC) -Wshadow -Wno-ctor-dtor-privacy \ ...@@ -84,8 +84,8 @@ CFLAGSWARNCXX=$(CFLAGSWARNCC) -Wshadow -Wno-ctor-dtor-privacy \
-Wno-non-virtual-dtor -Wno-non-virtual-dtor
CFLAGSWALLCC=$(CFLAGSWARNCC) CFLAGSWALLCC=$(CFLAGSWARNCC)
CFLAGSWALLCXX=$(CFLAGSWARNCXX) CFLAGSWALLCXX=$(CFLAGSWARNCXX)
CFLAGSWERRCC=-Werror CFLAGSWERRCC=-Werror -DLIBO_WERROR
CFLAGSWERRCXX=-Werror CFLAGSWERRCXX=-Werror -DLIBO_WERROR
MODULES_WITH_WARNINGS := \ MODULES_WITH_WARNINGS := \
b_server \ b_server \
......
...@@ -201,7 +201,7 @@ CFLAGSWARNCXX=-Wall -wd4061 -wd4127 -wd4191 -wd4217 -wd4250 -wd4251 -wd4275 \ ...@@ -201,7 +201,7 @@ CFLAGSWARNCXX=-Wall -wd4061 -wd4127 -wd4191 -wd4217 -wd4250 -wd4251 -wd4275 \
CFLAGSWARNCC=$(CFLAGSWARNCXX) -wd4255 CFLAGSWARNCC=$(CFLAGSWARNCXX) -wd4255
CFLAGSWALLCC=$(CFLAGSWARNCC) CFLAGSWALLCC=$(CFLAGSWARNCC)
CFLAGSWALLCXX=$(CFLAGSWARNCXX) CFLAGSWALLCXX=$(CFLAGSWARNCXX)
CFLAGSWERRCC=-WX CFLAGSWERRCC=-WX -DLIBO_WERROR
# Once all modules on this platform compile without warnings, set # Once all modules on this platform compile without warnings, set
# COMPILER_WARN_ERRORS=TRUE here instead of setting MODULES_WITH_WARNINGS (see # COMPILER_WARN_ERRORS=TRUE here instead of setting MODULES_WITH_WARNINGS (see
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment