Opened 7 years ago

Last modified 7 years ago

#11871 new Bugs

json_parser missing return statement in standard callback

Reported by: ingo.loehken@… Owned by: Sebastian Redl
Milestone: To Be Determined Component: property_tree
Version: Boost 1.61.0 Severity: Problem
Keywords: property_tree, new_tree, missing return Cc:

Description

new_tree in standard callbacks of json_parser misses return statement and therefore fails to compile depending on warning level.

Attachments (2)

missing-return.patch (1.3 KB ) - added by ingo.loehken@… 7 years ago.
patch
standard_callbacks.patch (559 bytes ) - added by nikolay@… 7 years ago.

Download all attachments as: .zip

Change History (3)

by ingo.loehken@…, 7 years ago

Attachment: missing-return.patch added

patch

by nikolay@…, 7 years ago

Attachment: standard_callbacks.patch added

comment:1 by nikolay@…, 7 years ago

The same issue in boost 1.60 (compilation fails). In case of internal logical error assert is not enough.

Note: See TracTickets for help on using tickets.