Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3774: Patch for disabling strict aliasing warnings
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-12-18 10:08:15
#3774: Patch for disabling strict aliasing warnings
-------------------------------------+--------------------------------------
Reporter: mikhailberis | Owner: johnmaddock
Type: Patches | Status: new
Milestone: Boost 1.42.0 | Component: config
Version: Boost Development Trunk | Severity: Problem
Keywords: warnings |
-------------------------------------+--------------------------------------
Comment(by anonymous):
The problem I have with this patch, is that it disables this warning
permanently - including in user code. Also the gcc docs say:
"Note that these pragmas override any command line options. Also, while it
is syntactically valid to put these pragmas anywhere in your sources, the
only supported location for them is before any data or functions are
defined. "
So basically you can only use these at the top of the source file
''before'' any #includes, and not in a header?
IMO we need a different fix... #pragma GCC system_header maybe?
John.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3774#comment:1> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC