From eeae6019242350752575d78f007be491f934b747 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Mon, 13 Jul 2026 09:19:56 +0800 Subject: [PATCH] Global: silences compiler warnings --- src/detection/opengl/opengl_shared.c | 2 +- src/logo/image/im6.c | 3 +++ src/logo/image/im7.c | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/detection/opengl/opengl_shared.c b/src/detection/opengl/opengl_shared.c index 2c6cf74f3..b3fc2309b 100644 --- a/src/detection/opengl/opengl_shared.c +++ b/src/detection/opengl/opengl_shared.c @@ -184,7 +184,7 @@ const char* ffOpenGLDetectByEGL(FFOpenGLResult* result) { } if (ffeglGetPlatformDisplay) { FF_DEBUG("Trying eglGetPlatformDisplay(EGL_PLATFORM_SURFACELESS_MESA)"); - display = ffeglGetPlatformDisplay(EGL_PLATFORM_SURFACELESS_MESA, EGL_DEFAULT_DISPLAY, nullptr); + display = ffeglGetPlatformDisplay(EGL_PLATFORM_SURFACELESS_MESA, nullptr /*EGL_DEFAULT_DISPLAY*/, nullptr); FF_DEBUG("eglGetPlatformDisplay() %s", display == EGL_NO_DISPLAY ? "failed" : "succeeded"); } else { FF_DEBUG("eglGetPlatformDisplay is unavailable, falling back to eglGetDisplay"); diff --git a/src/logo/image/im6.c b/src/logo/image/im6.c index 9fb4338c5..945012355 100644 --- a/src/logo/image/im6.c +++ b/src/logo/image/im6.c @@ -3,7 +3,10 @@ #include "image.h" #include "common/library.h" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wimplicit-int-float-conversion" #include + #pragma GCC diagnostic pop static FF_LIBRARY_SYMBOL(ResizeImage) diff --git a/src/logo/image/im7.c b/src/logo/image/im7.c index 967e79ea0..87b60c45f 100644 --- a/src/logo/image/im7.c +++ b/src/logo/image/im7.c @@ -3,7 +3,10 @@ #include "image.h" #include "common/library.h" + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wimplicit-int-float-conversion" #include + #pragma GCC diagnostic pop static FF_LIBRARY_SYMBOL(ResizeImage)