Re: [Boost-bugs] [Boost C++ Libraries] #12109: C4100 warning (unreferenced formal parameter) in json_parser

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12109: C4100 warning (unreferenced formal parameter) in json_parser
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-04-01 11:52:43


#12109: C4100 warning (unreferenced formal parameter) in json_parser
-------------------------------+--------------------------------
  Reporter: gigaplex@… | Owner: cornedbee
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: property_tree
   Version: Boost 1.60.0 | Severity: Regression
Resolution: | Keywords: C4100, json_parser
-------------------------------+--------------------------------

Comment (by gigaplex@…):

 When disabling error on warning to see if it will actually compile, I
 encountered another problem:

 boost::property_tree::json_parser::detail::standard_callbacks<PTree>::new_tree':
 not all control paths return a value

 The assert at the end of that function isn't sufficient. There's also an
 assert in one of the switch case statements in the same function, but
 there's no attempt made to stop release builds from falling through to the
 next case.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12109#comment:1>
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:50:19 UTC