* Resolve further warnings on GCC4.
* Enable -Werror on GCC4 builds as well (limited to the same selected targets). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29118 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1033,15 +1033,12 @@ if $(HAIKU_GCC_VERSION[1]) = 2 {
|
||||
: $(scope) ;
|
||||
}
|
||||
} else {
|
||||
# TODO: Enable after updating to a newer gcc 4 version that supports -Wno-error!
|
||||
# -Wuninitialized gives too many false positives.
|
||||
# rule EnableWerror dirTokens : scope {
|
||||
# AppendToConfigVar CCFLAGS : HAIKU_TOP $(dirTokens)
|
||||
# : -Werror -Wno-error=uninitialized : $(scope) ;
|
||||
# AppendToConfigVar C++FLAGS : HAIKU_TOP $(dirTokens)
|
||||
# : -Werror -Wno-error=uninitialized : $(scope) ;
|
||||
# }
|
||||
rule EnableWerror dirTokens : scope {
|
||||
AppendToConfigVar CCFLAGS : HAIKU_TOP $(dirTokens)
|
||||
: -Werror -Wno-error=uninitialized : $(scope) ;
|
||||
AppendToConfigVar C++FLAGS : HAIKU_TOP $(dirTokens)
|
||||
: -Werror -Wno-error=uninitialized : $(scope) ;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user