From f66e61dec420f90e4f20481da2d7b64f3b9e01be Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Thu, 16 Feb 2006 08:11:35 +0000 Subject: [PATCH] Suppress some warnings [SVN r32953] --- v2/tools/intel-linux.jam | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/v2/tools/intel-linux.jam b/v2/tools/intel-linux.jam index 905f899b0..e5e6abd7f 100644 --- a/v2/tools/intel-linux.jam +++ b/v2/tools/intel-linux.jam @@ -50,6 +50,35 @@ flags intel-linux.compile OPTIONS off : "-Ob0" ; flags intel-linux.compile OPTIONS on : "-Ob1" ; flags intel-linux.compile OPTIONS full : "-Ob2" ; flags intel-linux.compile OPTIONS space : "-O1" ; # no specific space optimization flag in icc + +# Disable some pointless warnings: +# 1418 is 'external definition with no prior declaration' +# This is just pointless +# 383 is 'value copied to temporary, reference to temporary used' +# Produced too often. +# 981 is 'operands are evaluated in unspecified order' +# This triggers even on chained operator "<<" +# 444 is 'destructor for base class XX is not virtual' +# Emitted on boost::noncopyable, that has no virtual +# methods to begin with and is not a "real" base class. +# 193 is 'zero used for undefined preprocessing identifier' +# This is common thing, and used in BOOST_WORKAROUND often. +# 530 is 'inline function XXX cannot be explicitly instantiated' +# Obscure warning affecting Boost. No docs can be found. +# 810 is 'conversion from X to Y may loose significant bits' +# This is emitted even for explicit conversions +# 304 is 'access control not specified, public by default' +# Emitted on "struct foo : whatever", which is used often in Boost.MPL +# 279 is 'controlling expression is constant' +# Happens, in particular, on "assert(false)" +# 1419 is 'external declaration in primary source file' +# This is just pointless +# +# It might be good idea to disable those "remark" warnings, but +# 869 (paremeter is never referenced) seems reasonable. +flags intel-linux.compile OPTIONS + : -wd1418 -wd383 -wd981 -wd444 -wd193 -wd530 -wd810 -wd304 -wd279 ; + actions compile.c++ { "$(CONFIG_COMMAND)" -c -xc++ $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)"