We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5059

Summary: [PATCH] Fix some format specifier warnings
Product: SDL Reporter: Jay Petacat <libsdl.org>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: trivial    
Priority: P2    
Version: HG 2.0   
Hardware: x86   
OS: Other   
Attachments: Patch that fixes warnings

Description Jay Petacat 2020-03-25 05:39:27 UTC
Created attachment 4279 [details]
Patch that fixes warnings

The warnings were produced by GCC 9.2.x for x86_64-linux-gnu or
i386-pc-msdosdjgpp targets.

Most of the fixes involve changing the type of a variable rather than
the format specifier. For many of the affected test conuter variables,
a basic int seems sufficient.

Some format specifier warnings still remain for cases where changing
type or casting seemed inappropriate. Those warnings will probably
require some new format specifier macros (e.g. SDL_PRIu32).
Comment 1 Sam Lantinga 2020-04-05 20:57:20 UTC
Patch added, tahnks!
https://hg.libsdl.org/SDL/rev/d075df3ffa57