From a2ccd820e58a0e6e0bee4cf10f681cb3e027de75 Mon Sep 17 00:00:00 2001 From: SuperUserNameMan <9801802+SuperUserNameMan@users.noreply.github.com> Date: Wed, 17 Jul 2024 18:47:50 +0200 Subject: [PATCH] CodeQL bot : Variable `result` hides another variable of the same name (on ). --- src/platforms/rcore_desktop_glfw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platforms/rcore_desktop_glfw.c b/src/platforms/rcore_desktop_glfw.c index f7283b77d..0e89c8930 100644 --- a/src/platforms/rcore_desktop_glfw.c +++ b/src/platforms/rcore_desktop_glfw.c @@ -1726,8 +1726,8 @@ int InitPlatform(void) // We don't use `ToggleFullscreen()` directly because `CORE.Window.fullscreen` is already set to `true`, // and `ToggleFullscreen()` would think it is already in fullscreen mode. - bool result = _ActivateHardwareFullscreenMode(monitorIndex, CORE.Window.screen.width, CORE.Window.screen.height, GLFW_DONT_CARE); - if ( result == false ) + bool _result = _ActivateHardwareFullscreenMode(monitorIndex, CORE.Window.screen.width, CORE.Window.screen.height, GLFW_DONT_CARE); + if ( _result == false ) { TRACELOG(LOG_WARNING,"DISPLAY: failed to activate fullscreen mode."); // We don't close the window, nor terminate GLFW, nor interrupt the paltform intialization because it is just a warning.