From c1da3e354e031577070b22d677f2e5d9de0813b6 Mon Sep 17 00:00:00 2001 From: ocornut Date: Wed, 4 May 2016 23:20:41 +0200 Subject: [PATCH] Examples: SDL: Fixed unused variable warning on non-Windows platforms (#626) --- examples/sdl_opengl3_example/imgui_impl_sdl_gl3.cpp | 2 ++ examples/sdl_opengl_example/imgui_impl_sdl.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/examples/sdl_opengl3_example/imgui_impl_sdl_gl3.cpp b/examples/sdl_opengl3_example/imgui_impl_sdl_gl3.cpp index c3fed5f0b..d97b4cc00 100644 --- a/examples/sdl_opengl3_example/imgui_impl_sdl_gl3.cpp +++ b/examples/sdl_opengl3_example/imgui_impl_sdl_gl3.cpp @@ -330,6 +330,8 @@ bool ImGui_ImplSdlGL3_Init(SDL_Window* window) SDL_VERSION(&wmInfo.version); SDL_GetWindowWMInfo(window, &wmInfo); io.ImeWindowHandle = wmInfo.info.win.window; +#else + (void)window; #endif return true; diff --git a/examples/sdl_opengl_example/imgui_impl_sdl.cpp b/examples/sdl_opengl_example/imgui_impl_sdl.cpp index a35dc1cea..ae42f143c 100644 --- a/examples/sdl_opengl_example/imgui_impl_sdl.cpp +++ b/examples/sdl_opengl_example/imgui_impl_sdl.cpp @@ -218,6 +218,8 @@ bool ImGui_ImplSdl_Init(SDL_Window* window) SDL_VERSION(&wmInfo.version); SDL_GetWindowWMInfo(window, &wmInfo); io.ImeWindowHandle = wmInfo.info.win.window; +#else + (void)window; #endif return true;