Boost C++ Libraries: Ticket #3656: Disable GCC warnings about printf formatter and type mismatch https://svn.boost.org/trac10/ticket/3656 <p> When building bjam using GCC 4.3.3 on Linux (32-bit), it throws the following two warnings: </p> <pre class="wiki">hash.c: In function ‘hashstat’: hash.c:458: warning: format ‘%ld’ expects type ‘long int’, but argument 7 has type ‘int’ hcache.c: In function ‘write_netstring’: hcache.c:169: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 3 has type ‘size_t’ </pre><p> Patch fixing the warnings attached. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3656 Trac 1.4.3 mloskot <mateusz@…> Sat, 21 Nov 2009 17:14:12 GMT attachment set https://svn.boost.org/trac10/ticket/3656 https://svn.boost.org/trac10/ticket/3656 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">bjam-gcc-printf-warning-cleanup.patch</span> </li> </ul> <p> Patch cleaning warnings reported in this ticket </p> Ticket Vladimir Prus Sat, 28 Nov 2009 17:46:48 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3656#comment:1 https://svn.boost.org/trac10/ticket/3656#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/58011" title="Fix warnings. Closes #3656. Patch from Mateusz Loskot. ">[58011]</a>) Fix warnings. Closes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3656" title="#3656: Patches: Disable GCC warnings about printf formatter and type mismatch (closed: fixed)">#3656</a>. </p> <p> Patch from Mateusz Loskot. </p> Ticket