mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-20 15:51:07 +01:00
emscripten: fix warnings in tests
This commit is contained in:
committed by
Anonymous Maarten
parent
a71e558d85
commit
d8884b845e
@@ -100,7 +100,9 @@ loop()
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
#ifndef __EMSCRIPTEN__
|
||||
Uint32 then, now, frames;
|
||||
#endif
|
||||
|
||||
/* Enable standard application logging */
|
||||
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
|
||||
@@ -135,10 +137,12 @@ main(int argc, char *argv[])
|
||||
|
||||
srand((unsigned int)time(NULL));
|
||||
|
||||
#ifndef __EMSCRIPTEN__
|
||||
/* Main render loop */
|
||||
frames = 0;
|
||||
then = SDL_GetTicks();
|
||||
done = 0;
|
||||
#endif
|
||||
|
||||
SDL_Log("Rendering %u frames offscreen\n", max_frames);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user