Boost C++ Libraries: Ticket #6582: Remove unused parameter warning in property tree json parser https://svn.boost.org/trac10/ticket/6582 <p> Using the property json parser, in particular boost::property_tree::read_json(...), among probably other case, produces an "unused parameter 'e'" warning as follows: </p> <pre class="wiki">... &lt;template instantiation omitted for brevity &gt;.... ../../src/my_source.cc:ln: instantiated from here /...fullpath.../include/boost/property_tree/detail/json_parser_read.hpp:115: warning: unused parameter ‘e’ </pre><p> This prevents the use of the -Werror flag during compilation. </p> <p> Patch attached. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6582 Trac 1.4.3 JL <julio.lopez@…> Mon, 20 Feb 2012 23:24:32 GMT attachment set https://svn.boost.org/trac10/ticket/6582 https://svn.boost.org/trac10/ticket/6582 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost-01.patch</span> </li> </ul> <p> Patch with a way of solving it. </p> Ticket Shane Turner <shane.turner@…> Wed, 20 Jun 2012 18:10:14 GMT attachment set https://svn.boost.org/trac10/ticket/6582 https://svn.boost.org/trac10/ticket/6582 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">json_parser_read.hpp.diff</span> </li> </ul> <p> Silence the warnings from GCC about unused parameters by commenting out the second variable, leaving only the type. </p> Ticket Shane Turner <shane.turner@…> Tue, 12 Feb 2013 14:42:26 GMT <link>https://svn.boost.org/trac10/ticket/6582#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6582#comment:1</guid> <description> <p> Is there any chance that this patch could be applied for Boost 1.54.0? </p> </description> <category>Ticket</category> </item> <item> <author>Matthieu Vachon <matthieu.o.vachon@…></author> <pubDate>Thu, 21 Mar 2013 18:57:07 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6582#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6582#comment:2</guid> <description> <p> I prefer the patch from Shane Turner, which is my opinion easier to understand. </p> <p> 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. </p> <p> Regards, Matt </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Mateusz Loskot</dc:creator> <pubDate>Thu, 18 Jul 2013 08:37:08 GMT</pubDate> <title>description changed https://svn.boost.org/trac10/ticket/6582#comment:3 https://svn.boost.org/trac10/ticket/6582#comment:3 <ul> <li><strong>description</strong> modified (<a href="/trac10/ticket/6582?action=diff&amp;version=3">diff</a>) </li> </ul> Ticket Mateusz Loskot Thu, 18 Jul 2013 08:38:29 GMT <link>https://svn.boost.org/trac10/ticket/6582#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6582#comment:4</guid> <description> <p> Once this ticket is solved, the duplicate <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8022" title="#8022: Bugs: gcc: json_parser_read.hpp:116: warning: unused parameter 'e' ... (closed: duplicate)">#8022</a> should be closed </p> </description> <category>Ticket</category> </item> <item> <author>shane.turner@…</author> <pubDate>Fri, 04 Oct 2013 14:21:12 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6582#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6582#comment:5</guid> <description> <p> Is there any chance that this can be fixed in Boost 1.55.0? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Sebastian Redl</dc:creator> <pubDate>Mon, 10 Feb 2014 16:26:41 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/6582#comment:6 https://svn.boost.org/trac10/ticket/6582#comment:6 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> Fixed on develop: da37088 </p> Ticket Sebastian Redl Mon, 24 Feb 2014 12:58:04 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6582#comment:7 https://svn.boost.org/trac10/ticket/6582#comment:7 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Merged to master in 85f8d8866ccf. </p> Ticket