Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a printf format string signedness warning
gcc 13.2 outputs several warnings for mismatched printf format strings, such as: /home/david/Development/julius/test/sav/sav_compare.c: In function ‘compare_part’: /home/david/Development/julius/test/sav/sav_compare.c:522:45: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 3 has type ‘int’ [-Wformat=] 522 | printf("record %d offset 0x%X", i / save_game_parts[index].record_length, i % save_game_parts[index].record_length); | ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | unsigned int int | %X This patch doesn't fix all of them, but does fix the simple ones. Signed-off-by: David Gow <david@ingeniumdigital.com>
- Loading branch information