From 4330f147d0bf0f5f38f0cf05e05de717d95b437f Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Wed, 2 Sep 2020 17:32:58 +0200 Subject: Fix unused variable warning on Windows with WITH_INPUT_IME disabled --- intern/ghost/intern/GHOST_SystemWin32.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'intern/ghost') 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) { -- cgit v1.2.3