[Bf-blender-cvs] [4330f147d0b] master: Fix unused variable warning on Windows with WITH_INPUT_IME disabled

Julian Eisel noreply at git.blender.org
Wed Sep 2 17:33:36 CEST 2020


Commit: 4330f147d0bf0f5f38f0cf05e05de717d95b437f
Author: Julian Eisel
Date:   Wed Sep 2 17:32:58 2020 +0200
Branches: master
https://developer.blender.org/rB4330f147d0bf0f5f38f0cf05e05de717d95b437f

Fix unused variable warning on Windows with WITH_INPUT_IME disabled

===================================================================

M	intern/ghost/intern/GHOST_SystemWin32.cpp

===================================================================

diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp
index 533e51db355..f784d100db2 100644
--- a/intern/ghost/intern/GHOST_SystemWin32.cpp
+++ b/intern/ghost/intern/GHOST_SystemWin32.cpp
@@ -1305,7 +1305,9 @@ LRESULT WINAPI GHOST_SystemWin32::s_wndProc(HWND hwnd, UINT msg, WPARAM wParam,
 
   LRESULT lResult = 0;
   GHOST_SystemWin32 *system = (GHOST_SystemWin32 *)getSystem();
+#ifdef WITH_INPUT_IME
   GHOST_EventManager *eventManager = system->getEventManager();
+#endif
   GHOST_ASSERT(system, "GHOST_SystemWin32::s_wndProc(): system not initialized");
 
   if (hwnd) {



More information about the Bf-blender-cvs mailing list