Opened 13 years ago

Closed 13 years ago

#3656 closed Patches (fixed)

Disable GCC warnings about printf formatter and type mismatch

Reported by: mloskot <mateusz@…> Owned by: René Rivera
Milestone: Boost 1.42.0 Component: bjam
Version: Boost Development Trunk Severity: Cosmetic
Keywords: Cc:

Description

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.

Attachments (1)

bjam-gcc-printf-warning-cleanup.patch (1.0 KB ) - added by mloskot <mateusz@…> 13 years ago.
Patch cleaning warnings reported in this ticket

Download all attachments as: .zip

Change History (2)

by mloskot <mateusz@…>, 13 years ago

Patch cleaning warnings reported in this ticket

comment:1 by Vladimir Prus, 13 years ago

Resolution: fixed
Status: newclosed

(In [58011]) Fix warnings. Closes #3656.

Patch from Mateusz Loskot.

Note: See TracTickets for help on using tickets.