diff options
author | Julian Eisel <julian@blender.org> | 2020-09-02 18:32:58 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-09-02 18:32:58 +0300 |
commit | 4330f147d0bf0f5f38f0cf05e05de717d95b437f (patch) | |
tree | 3d564eaa9964023e93cc5120b18f357ae2608707 /intern/ghost | |
parent | c992fd3a3c13763f458e420507f044ec82155a81 (diff) |
Fix unused variable warning on Windows with WITH_INPUT_IME disabled
Diffstat (limited to 'intern/ghost')
-rw-r--r-- | intern/ghost/intern/GHOST_SystemWin32.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |