Opened 11 years ago
Closed 9 years ago
#6582 closed Bugs (fixed)
Remove unused parameter warning in property tree json parser
Reported by: | Owned by: | Sebastian Redl | |
---|---|---|---|
Milestone: | To Be Determined | Component: | property_tree |
Version: | Boost 1.48.0 | Severity: | Cosmetic |
Keywords: | Cc: |
Description (last modified by )
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.
Attachments (2)
Change History (9)
by , 11 years ago
Attachment: | boost-01.patch added |
---|
by , 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.
comment:2 by , 10 years ago
I prefer the patch from Shane Turner, which is my opinion easier to understand.
I'm facing the same problem, I have manually patched my version. Could this be looked, it is an easy fix that has no impact and can be integrated fairly easy.
Regards, Matt
comment:3 by , 9 years ago
Description: | modified (diff) |
---|
comment:7 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Merged to master in 85f8d8866ccf.
Patch with a way of solving it.