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 - [PATCH] Fix some format specifier warnings
Summary: [PATCH] Fix some format specifier warnings
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: HG 2.0
Hardware: x86 Other
: P2 trivial
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-25 05:39 UTC by Jay Petacat
Modified: 2020-04-05 20:57 UTC (History)
0 users

See Also:


Attachments
Patch that fixes warnings (5.71 KB, patch)
2020-03-25 05:39 UTC, Jay Petacat
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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