Fix warnings

Fix warnings reported with -Dwarning_level=2.
This commit is contained in:
Romain Vimont
2019-11-26 09:08:12 +01:00
parent 6abb8fd0cd
commit 31d9d56117
3 changed files with 8 additions and 6 deletions

View File

@@ -201,6 +201,7 @@ handle_event(SDL_Event *event, bool control) {
static bool
event_loop(bool display, bool control) {
(void) display;
#ifdef CONTINUOUS_RESIZING_WORKAROUND
if (display) {
SDL_AddEventWatch(event_watcher, NULL);
@@ -256,6 +257,7 @@ sdl_priority_from_av_level(int level) {
static void
av_log_callback(void *avcl, int level, const char *fmt, va_list vl) {
(void) avcl;
SDL_LogPriority priority = sdl_priority_from_av_level(level);
if (priority == 0) {
return;