[Boost-bugs] [Boost C++ Libraries] #1130: GCC -wundef warnings

Subject: [Boost-bugs] [Boost C++ Libraries] #1130: GCC -wundef warnings
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-07-30 12:07:40


#1130: GCC -wundef warnings
-----------------------+----------------------------------------------------
 Reporter: anonymous | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.34.1
 Severity: Problem | Keywords:
-----------------------+----------------------------------------------------
 Compiling code that includes Boost headers with `gcc -wundef` produces a
 lot of warnings about undefined preprocessor symbols, mainly in
 `BOOST_WORKAROUND(XXX, ...)`
 where `XXX` is not defined.

 Example:

 boost/filesystem/fstream.hpp line 103:

 {{{
 # if !BOOST_WORKAROUND( BOOST_MSVC, <= 1200 ) // VC++ 6.0 can't handle
 this
 }}}

 should probably be

 {{{
 # if defined( BOOST_MSVC ) && !BOOST_WORKAROUND( BOOST_MSVC, <= 1200 )
 }}}

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1130>
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:49:56 UTC