Use C89 var declaration in glfwGetSystemDefaultTheme, init.c

This commit is contained in:
ws909 2023-02-04 17:17:05 +01:00
parent 5805c51eab
commit 9889f26b0f

View File

@ -545,9 +545,10 @@ GLFWAPI GLFWerrorfun glfwSetErrorCallback(GLFWerrorfun cbfun)
GLFWAPI GLFWtheme* glfwGetSystemDefaultTheme() GLFWAPI GLFWtheme* glfwGetSystemDefaultTheme()
{ {
_GLFWtheme* theme;
_GLFW_REQUIRE_INIT_OR_RETURN(NULL); _GLFW_REQUIRE_INIT_OR_RETURN(NULL);
_GLFWtheme* theme = _glfw.platform.getSystemDefaultTheme(); theme = _glfw.platform.getSystemDefaultTheme();
assert(theme->variation != GLFW_THEME_DEFAULT); assert(theme->variation != GLFW_THEME_DEFAULT);
return (GLFWtheme*) theme; return (GLFWtheme*) theme;