summaryrefslogtreecommitdiff
path: root/test/testtimer.c
diff options
context:
space:
mode:
authorJay Petacat <jay@jayschwa.net>2020-03-25 01:34:15 -0400
committerJay Petacat <jay@jayschwa.net>2020-03-25 01:34:15 -0400
commit79889446e170ee3967ae6d10bc2cb580890b2d90 (patch)
tree6e50746528ea9a973ca252fad58cbdd3a32e9c0f /test/testtimer.c
parent65da04a88c0a10594a87ef8826866b5282693222 (diff)
downloadsdl-79889446e170ee3967ae6d10bc2cb580890b2d90.tar.gz
Fix some format specifier 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).
Diffstat (limited to 'test/testtimer.c')
-rw-r--r--test/testtimer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/testtimer.c b/test/testtimer.c
index 2e995e3be..7e49d7508 100644
--- a/test/testtimer.c
+++ b/test/testtimer.c
@@ -107,7 +107,7 @@ main(int argc, char *argv[])
now = SDL_GetPerformanceCounter();
SDL_Log("1 million iterations of ticktock took %f ms\n", (double)((now - start)*1000) / SDL_GetPerformanceFrequency());
- SDL_Log("Performance counter frequency: %"SDL_PRIu64"\n", (unsigned long long) SDL_GetPerformanceFrequency());
+ SDL_Log("Performance counter frequency: %"SDL_PRIu64"\n", SDL_GetPerformanceFrequency());
start32 = SDL_GetTicks();
start = SDL_GetPerformanceCounter();
SDL_Delay(1000);