Modify

Opened 9 years ago

Last modified 4 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)

concept_check_error.txt (11.1 KB) - added by Jürgen Hunold 9 years ago.
msvc error messages
msvc_concept_detail.diff (402 bytes) - added by Jürgen Hunold 9 years ago.
patch against trunk
msvc_concept_warnings.diff (860 bytes) - added by Jürgen Hunold 9 years ago.
patch against 1.37.0
concept_check.diff (1.1 KB) - added by Jürgen Hunold 9 years ago.
Delta between trunk and release branch
boost_concepts_check_unused_var_buildlog.txt (2.3 KB) - added by Alexis Armin Huf <alexishuf@…> 5 years ago.
Build log under msvc 2010

Download all attachments as: .zip

Change History (8)

Changed 9 years ago by Jürgen Hunold

Attachment: concept_check_error.txt added

msvc error messages

Changed 9 years ago by Jürgen Hunold

Attachment: msvc_concept_detail.diff added

patch against trunk

Changed 9 years ago by Jürgen Hunold

Attachment: msvc_concept_warnings.diff added

patch against 1.37.0

Changed 9 years ago by Jürgen Hunold

Attachment: concept_check.diff added

Delta between trunk and release branch

Changed 5 years ago by Alexis Armin Huf <alexishuf@…>

Build log under msvc 2010

comment:1 Changed 5 years ago by Alexis Armin Huf <alexishuf@…>

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 Changed 5 years ago by zadirion@…

I am also having this issue. Unreferenced parameter x on line 22 in msvc.hpp. What can be done to avoid this????

comment:3 Changed 4 years ago by Chromatix <mhazadmanesh2009@…>

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?

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain jsiek.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.