Opened 8 years ago

Last modified 8 years ago

#10872 new Bugs

MSVC static analyser warning in Boost.System

Reported by: Niall Douglas Owned by: Beman Dawes
Milestone: To Be Determined Component: system
Version: Boost 1.57.0 Severity: Problem
Keywords: Cc:

Description

boost\system\detail\error_code.ipp(422) : warning C6102: Using 'lpMsgBuf' from failed function call at line '418'.: Lines: 410, 411, 422

Change History (2)

comment:1 by Beman Dawes, 8 years ago

Please supply instructions for reproducing the problem. Also, what platform, compiler version, etc.

--Beman

comment:2 by Niall Douglas, 8 years ago

VS2013. You need to supply the /analyze flag to enable the static analyser. Note the MSVC static analyser can be a little buggy, if it's a false positive use the usual #pragma warning(disable) wrap to suppress it.

Here's a full build log: https://ci.nedprod.com/view/Boost%20Thread-Expected-Permit/job/Boost.Thread%20Build/CPPSTD=c++14,CXX=msvc-analyse,LINKTYPE=shared,label=win8-msvc-mingw/64/console

Note: See TracTickets for help on using tickets.