Subject: [Boost-bugs] [Boost C++ Libraries] #1672: [foreach] compiler warnings from VC8/VC9
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-03-05 18:47:35
#1672: [foreach] compiler warnings from VC8/VC9
---------------------------------------------------------+------------------
Reporter: Richard Webb <richard.webb_at_[hidden]> | Owner: eric_niebler
Type: Bugs | Status: new
Milestone: To Be Determined | Component: foreach
Version: Boost Development Trunk | Severity: Cosmetic
Keywords: |
---------------------------------------------------------+------------------
Using BOOST_FOREACH in VC8/9 with warning level 4 and code analysis
enabled results in some compiler warnings:
{{{
boost/foreach.hpp(474) : warning C4100: 't' : unreferenced formal
parameter
boost\foreach.hpp(414) : warning C6282: Incorrect operator: assignment of
constant in Boolean context. Consider using '==' instead
warning C6001: Using uninitialized memory '_foreach_end': Lines: 11, 13
warning C6001: Using uninitialized memory '_foreach_cur': Lines: 11, 13
}}}
I'm not sure exactly where the 6001 warnings come from, as the real
location is hidden by the macro.
Note also that all but the first warning only occur when code analysis is
enabled, so can only be reproed on a compiler version that supports that
option.
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1672>
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:57 UTC