[Boost-bugs] [Boost C++ Libraries] #3656: Disable GCC warnings about printf formatter and type mismatch

Subject: [Boost-bugs] [Boost C++ Libraries] #3656: Disable GCC warnings about printf formatter and type mismatch
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-21 17:13:20


#3656: Disable GCC warnings about printf formatter and type mismatch
------------------------------------------+---------------------------------
 Reporter: mloskot <mateusz@…> | Owner: grafik
     Type: Patches | Status: new
Milestone: Boost 1.42.0 | Component: bjam
  Version: Boost Development Trunk | Severity: Cosmetic
 Keywords: |
------------------------------------------+---------------------------------
 When building bjam using GCC 4.3.3 on Linux (32-bit), it throws the
 following two warnings:

 {{{
 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’
 }}}

 Patch fixing the warnings attached.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3656>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC