mirror of
https://github.com/boostorg/build.git
synced 2026-02-14 12:42:11 +00:00
Make <warnings>on the default. Increase warning level options for
compiler for <warnings>all for gcc and intel. [SVN r33306]
This commit is contained in:
@@ -81,8 +81,8 @@ feature dependency : : free dependency incidental ;
|
||||
feature implicit-dependency : : free dependency incidental ;
|
||||
|
||||
feature warnings :
|
||||
all # enable all warnings issued by the tool
|
||||
on # enable default warning level for the tool
|
||||
on # enable default/"reasonable" warning level for the tool
|
||||
all # enable all possible warnings issued by the tool
|
||||
off # disable all warnings issued by the tool
|
||||
: incidental propagated ;
|
||||
|
||||
|
||||
@@ -81,7 +81,8 @@ flags gcc.compile OPTIONS <inlining>on : -Wno-inline ;
|
||||
flags gcc.compile OPTIONS <inlining>full : -finline-functions -Wno-inline ;
|
||||
|
||||
flags gcc.compile OPTIONS <warnings>off : -w ;
|
||||
flags gcc.compile OPTIONS <warnings>all : -Wall ;
|
||||
flags gcc.compile OPTIONS <warnings>on : -Wall ;
|
||||
flags gcc.compile OPTIONS <warnings>all : -Wall -pedantic ;
|
||||
flags gcc.compile OPTIONS <warnings-as-errors>on : -Werror ;
|
||||
|
||||
flags gcc.compile OPTIONS <debug-symbols>on : -g ;
|
||||
|
||||
@@ -24,7 +24,9 @@ generators.override intel-linux.searched-lib-generator : searched-lib-generator
|
||||
|
||||
toolset.inherit-rules intel-linux : gcc ;
|
||||
toolset.inherit-flags intel-linux : gcc
|
||||
: <inlining>off <inlining>on <inlining>full <optimization>space ;
|
||||
: <inlining>off <inlining>on <inlining>full <optimization>space
|
||||
<warnings>off <warnings>all <warnings>on
|
||||
;
|
||||
|
||||
# Initializes the intel-linux toolset
|
||||
# version in mandatory
|
||||
@@ -51,33 +53,9 @@ flags intel-linux.compile OPTIONS <inlining>on : "-Ob1" ;
|
||||
flags intel-linux.compile OPTIONS <inlining>full : "-Ob2" ;
|
||||
flags intel-linux.compile OPTIONS <optimization>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 ;
|
||||
flags intel-linux.compile OPTIONS <warnings>off : -w0 ;
|
||||
flags intel-linux.compile OPTIONS <warnings>on : -w1 ;
|
||||
flags intel-linux.compile OPTIONS <warnings>all : -w2 ;
|
||||
|
||||
actions compile.c++
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user