Opened 13 years ago

Last modified 11 years ago

#3196 new Bugs

compiler warnings in VC9

Reported by: kfriddile@… Owned by: jsiek
Milestone: Boost 1.40.0 Component: concept_check
Version: Boost 1.39.0 Severity: Problem
Keywords: Cc:

Description

The following code in boost/concept/detail/msvc.hpp generates a warning stating that 'x' is an unreferenced formal parameter under VC9 at warning level 4 when failed() isn't invoked. Since this already appears to be an msvc-specific file, can it's contents be wrapped in a #pragma warning( disable : 4100 ) to suppress the warning?

template <class Model> struct check {

virtual void failed(Model* x) {

x->~Model();

}

};

Change History (2)

comment:1 by Akira Takahashi(faithandbrave@…, 11 years ago

additional information:

this problem happened invoke trivial destructor(VC9, VC10). I think VC's bug. I reported to Microsoft Connect Japanese: https://connect.microsoft.com/VisualStudioJapan/feedback/details/674908/

comment:2 by Akira Takahashi(faithandbrave@…, 11 years ago

additional information:

this problem happened invoke trivial destructor(VC9, VC10). I think VC's bug. I reported to Microsoft Connect Japanese: feedback674908

Note: See TracTickets for help on using tickets.