Several relatively new options are enabled for GCC4.4+ instead of everything except GCC3.4
git-svn-id: http://pugixml.googlecode.com/svn/trunk@801 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
d99745be21
commit
d77e8a42b5
@ -39,7 +39,9 @@ if ( $(toolset:I=^mingw) || $(toolset:I=^gcc) )
|
|||||||
RESULT += -Woverloaded-virtual -Wno-pmf-conversions -Wsign-promo -Wformat=2 -Winit-self -Wswitch-default ;
|
RESULT += -Woverloaded-virtual -Wno-pmf-conversions -Wsign-promo -Wformat=2 -Winit-self -Wswitch-default ;
|
||||||
RESULT += -Wunused -Wstrict-aliasing=2 -Wundef -Wshadow -Wredundant-decls ;
|
RESULT += -Wunused -Wstrict-aliasing=2 -Wundef -Wshadow -Wredundant-decls ;
|
||||||
|
|
||||||
if ( $(toolset) != mingw34 )
|
local REG_GCC44_PLUS = "(gcc|mingw)4.?[4-9]" ;
|
||||||
|
|
||||||
|
if ( $(toolset:I=$(REG_GCC44_PLUS)) )
|
||||||
{
|
{
|
||||||
RESULT += -Wstrict-null-sentinel -Wlogical-op -Wmissing-declarations ;
|
RESULT += -Wstrict-null-sentinel -Wlogical-op -Wmissing-declarations ;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user