From 71ebfd8717bf3ff4469b758f39ea853ec3c78d6a Mon Sep 17 00:00:00 2001 From: Serge Gautherie Date: Thu, 8 Feb 2018 00:27:27 +0100 Subject: [PATCH] [OPENGLCFG] Fix a Clang-Cl warning about IDC_DEBUG_OUTPUT "warning: use of logical '||' with constant operand [-Wconstant-logical-operand]" CORE-14306 --- dll/cpl/openglcfg/general.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dll/cpl/openglcfg/general.c b/dll/cpl/openglcfg/general.c index dcf53f55bfd..0b9db4ca219 100644 --- a/dll/cpl/openglcfg/general.c +++ b/dll/cpl/openglcfg/general.c @@ -170,8 +170,11 @@ INT_PTR CALLBACK GeneralPageProc(HWND hWndDlg, UINT uMsg, WPARAM wParam, LPARAM return TRUE; case WM_COMMAND: - if (LOWORD(wParam) == IDC_RENDERER || IDC_DEBUG_OUTPUT) + if (LOWORD(wParam) == IDC_RENDERER || + LOWORD(wParam) == IDC_DEBUG_OUTPUT) + { PropSheet_Changed(GetParent(hWndDlg), hWndDlg); + } break; case WM_NOTIFY: