From d77e8a42b5346f95e1ae75ad94b0102672521c5c Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Sun, 19 Dec 2010 11:57:11 +0000 Subject: 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 --- Jamrules.jam | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Jamrules.jam') diff --git a/Jamrules.jam b/Jamrules.jam index d253a69..dc7ba35 100644 --- a/Jamrules.jam +++ b/Jamrules.jam @@ -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 += -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 ; } -- cgit v1.2.3