Recent gcc versions generate warnings when compiling util/zbin.c ( tested with gcc-4.3.3 ): util/zbin.c: In function ‘process_zinfo_pack’: util/zbin.c:200: warning: format ‘%#zx’ expects type ‘size_t’, but argument 6 has type ‘long unsigned int’ util/zbin.c: In function ‘process_zinfo_add’: util/zbin.c:257: warning: format ‘%#lx’ expects type ‘long unsigned int’, but argument 4 has type ‘int’ util/zbin.c:266: warning: format ‘%#lx’ expects type ‘long unsigned int’, but argument 4 has type ‘int’ util/zbin.c:266: warning: format ‘%d’ expects type ‘int’, but argument 8 has type ‘long unsigned int’ util/zbin.c:286: warning: format ‘%#lx’ expects type ‘long unsigned int’, but argument 6 has type ‘int’ util/zbin.c:286: warning: format ‘%#lx’ expects type ‘long unsigned int’, but argument 7 has type ‘size_t’ This patch eliminates these warnings. Tested with gcc-4.3.3 on Ubuntu 9.04 and gcc-4.1.2 on Debian Etch. Signed-off-by: Marty Connor <mdc@etherboot.org>tags/v0.9.9
|
|
||
197 |
|
197 |
|
198 |
|
198 |
|
199 |
|
199 |
|
200 |
|
|
|
|
200 |
|
|
201 |
|
201 |
|
202 |
|
202 |
|
203 |
|
203 |
|
|
|
||
252 |
|
252 |
|
253 |
|
253 |
|
254 |
|
254 |
|
255 |
|
|
|
|
255 |
|
|
256 |
|
256 |
|
257 |
|
257 |
|
258 |
|
258 |
|
259 |
|
259 |
|
260 |
|
260 |
|
261 |
|
261 |
|
262 |
|
|
|
|
262 |
|
|
263 |
|
263 |
|
264 |
|
264 |
|
265 |
|
265 |
|
266 |
|
|
|
|
266 |
|
|
267 |
|
267 |
|
268 |
|
268 |
|
269 |
|
269 |
|
|
|
||
280 |
|
280 |
|
281 |
|
281 |
|
282 |
|
282 |
|
283 |
|
|
|
|
283 |
|
|
284 |
|
284 |
|
285 |
|
285 |
|
286 |
|
286 |
|