Opened 14 years ago
Last modified 8 years ago
#2482 new Patches
msvc-9.0 unreferenced formal parameter warning when using boost::breadth_first_visit
Reported by: | Jürgen Hunold | Owned by: | jsiek |
---|---|---|---|
Milestone: | Boost 1.38.0 | Component: | concept_check |
Version: | Boost Release Branch | Severity: | Problem |
Keywords: | msvc concept_check warnings 9.0 | Cc: |
Description
Boost. 1.37.0 (maybe earlier) and Boost.Trunk trigger msvc " warning C4100: 'b' : unreferenced formal parameter" in concept_check.hpp(144) and in concept/detail/msvc.hpp(21) : warning C4100: 'x' : unreferenced formal parameter.
Full obfuscated template instation stack attached.
I've attached our patch against 1.37.0, a patch against current trunk for msvc.hpp and a patch showing that trunk and release version of boost/concept_check.hpp are different.
Attachments (5)
Change History (8)
by , 14 years ago
Attachment: | concept_check_error.txt added |
---|
by , 10 years ago
Attachment: | boost_concepts_check_unused_var_buildlog.txt added |
---|
Build log under msvc 2010
comment:1 by , 10 years ago
I foud the same error under msvc 2010 with boost 1.53.0 while using boost::breadth_first_search.
After some looking arround i could get the attached log with just
BOOST_CONCEPT_ASSERT((boost::SignedInteger<int>))
The warning appears even with /Od and no fiddling with compiler options that i tried made the problem go away.
comment:2 by , 10 years ago
I am also having this issue. Unreferenced parameter x on line 22 in msvc.hpp. What can be done to avoid this????
comment:3 by , 8 years ago
Boost 1_54_0 and the warnings are still there on MSVC 2010. The patches posted by jhunold simply fix this. Could the developers please apply the patches?
msvc error messages