ArchitectureRules: Enable more warnings.
This commit is contained in:
@@ -112,18 +112,13 @@ rule ArchitectureSetup architecture
|
|||||||
# set variables for gcc header options
|
# set variables for gcc header options
|
||||||
SetIncludePropertiesVariables HAIKU : _$(architecture) ;
|
SetIncludePropertiesVariables HAIKU : _$(architecture) ;
|
||||||
|
|
||||||
# C/C++ flags
|
|
||||||
if $(gccVersion[1]) >= 4 {
|
|
||||||
HAIKU_C++FLAGS_$(architecture) += -Wno-deprecated ;
|
|
||||||
}
|
|
||||||
|
|
||||||
# warning flags
|
# warning flags
|
||||||
HAIKU_WARNING_CCFLAGS_$(architecture) = -Wall
|
HAIKU_WARNING_CCFLAGS_$(architecture) = -Wall
|
||||||
-Wno-trigraphs -Wno-multichar
|
-Wno-multichar
|
||||||
-Wpointer-arith -Wcast-align -Wsign-compare
|
-Wpointer-arith -Wcast-align -Wsign-compare
|
||||||
-Wmissing-prototypes ;
|
-Wmissing-prototypes ;
|
||||||
HAIKU_WARNING_C++FLAGS_$(architecture) = -Wall
|
HAIKU_WARNING_C++FLAGS_$(architecture) = -Wall
|
||||||
-Wno-trigraphs -Wno-multichar
|
-Wno-multichar
|
||||||
-Wpointer-arith -Wcast-align -Wsign-compare
|
-Wpointer-arith -Wcast-align -Wsign-compare
|
||||||
-Wno-ctor-dtor-privacy -Woverloaded-virtual ;
|
-Wno-ctor-dtor-privacy -Woverloaded-virtual ;
|
||||||
|
|
||||||
@@ -138,8 +133,10 @@ rule ArchitectureSetup architecture
|
|||||||
HAIKU_WERROR_FLAGS_$(architecture) = ;
|
HAIKU_WERROR_FLAGS_$(architecture) = ;
|
||||||
|
|
||||||
if $(gccVersion[1]) >= 4 {
|
if $(gccVersion[1]) >= 4 {
|
||||||
# TODO: remove the -Wno-unused-but-set-variable option
|
# TODO: Remove all these.
|
||||||
HAIKU_WERROR_FLAGS_$(architecture) += -Wno-error=unused-but-set-variable ;
|
HAIKU_WERROR_FLAGS_$(architecture) += -Wno-error=unused-but-set-variable
|
||||||
|
-Wno-error=deprecated -Wno-error=deprecated-declarations
|
||||||
|
-Wno-error=cpp -Wno-error=trigraphs ;
|
||||||
}
|
}
|
||||||
|
|
||||||
# debug flags
|
# debug flags
|
||||||
|
|||||||
Reference in New Issue
Block a user