author | Steffen Prohaska <prohaska@zib.de> | |
Wed, 21 Nov 2007 20:27:19 +0000 (21:27 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 29 Nov 2007 00:03:38 +0000 (16:03 -0800) | ||
commit | 9e42d6a1c53dadd409fab11cc76e0eba9ec15365 | |
tree | f663b270c54834fb82c0aeb3833a1ae9cd4b58a0 | tree | snapshot |
parent | 0673c96db92429d1c6dee528c71b067470b1e8f9 | commit | diff |
sha1_file.c: Fix size_t related printf format warnings
The old way of fixing warnings did not succeed on MinGW. MinGW
does not support C99 printf format strings for size_t [1]. But
gcc on MinGW issues warnings if C99 printf format is not used.
Hence, the old stragegy to avoid warnings fails.
[1] http://www.mingw.org/MinGWiki/index.php/C99
This commits passes arguments of type size_t through a tiny
helper functions that casts to the type expected by the format
string.
Signed-off-by: Steffen Prohaska <prohaska@zib.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The old way of fixing warnings did not succeed on MinGW. MinGW
does not support C99 printf format strings for size_t [1]. But
gcc on MinGW issues warnings if C99 printf format is not used.
Hence, the old stragegy to avoid warnings fails.
[1] http://www.mingw.org/MinGWiki/index.php/C99
This commits passes arguments of type size_t through a tiny
helper functions that casts to the type expected by the format
string.
Signed-off-by: Steffen Prohaska <prohaska@zib.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_file.c | diff | blob | history |