Opened 11 years ago

Last modified 9 years ago

#6582 closed Bugs

Remove unused parameter warning in property tree json parser — at Initial Version

Reported by: JL <julio.lopez@…> Owned by: Sebastian Redl
Milestone: To Be Determined Component: property_tree
Version: Boost 1.48.0 Severity: Cosmetic
Keywords: Cc:

Description

Using the property json parser, in particular boost::property_tree::read_json(...), among probably other case, produces an "unused parameter 'e'" warning as follows:

... <template instantiation omitted for brevity >....

../../src/my_source.cc:ln: instantiated from here /...fullpath.../include/boost/property_tree/detail/json_parser_read.hpp:115: warning: unused parameter ‘e’

This prevents the use of the -Werror flag during compilation.

Patch attached.

Change History (2)

by JL <julio.lopez@…>, 11 years ago

Attachment: boost-01.patch added

Patch with a way of solving it.

by Shane Turner <shane.turner@…>, 10 years ago

Attachment: json_parser_read.hpp.diff added

Silence the warnings from GCC about unused parameters by commenting out the second variable, leaving only the type.

Note: See TracTickets for help on using tickets.