mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-02 01:47:41 +00:00
Fixed some warnings when building on Linux with -DSDL_LIBC=OFF
This commit is contained in:
parent
e9014ee769
commit
bde808cd87
4 changed files with 20 additions and 12 deletions
|
@ -496,6 +496,11 @@ SDL_LogOutput(void *userdata, int category, SDL_LogPriority priority,
|
|||
#if HAVE_STDIO_H && \
|
||||
!(defined(__APPLE__) && (defined(SDL_VIDEO_DRIVER_COCOA) || defined(SDL_VIDEO_DRIVER_UIKIT)))
|
||||
fprintf(stderr, "%s: %s\n", SDL_priority_prefixes[priority], message);
|
||||
#else
|
||||
/* We won't print anything, but reference the priority prefix anyway
|
||||
to avoid a compiler warning.
|
||||
*/
|
||||
(void)SDL_priority_prefixes[priority];
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue