embedserv/source/embed/tracker.cxx | 2 +- sfx2/source/appl/shutdowniconw32.cxx | 2 +- vcl/win/dtrans/MtaOleClipb.cxx | 2 +- vcl/win/dtrans/target.cxx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
New commits: commit cd057f55bae74c6a14d893d292286909430b4382 Author: Stephan Bergmann <[email protected]> AuthorDate: Wed Dec 22 09:16:38 2021 +0100 Commit: Stephan Bergmann <[email protected]> CommitDate: Wed Dec 22 13:33:46 2021 +0100 Silence loplugin:fakebool for BOOL GetMessageW even harder 8f22ce5ea3e62a4837773f6958b8ce7ac96f811a "loplugin:fakebool (clang-cl)" had tried to use auto to silence the warning about GetMessageW's misused BOOL return type (where GetMessageW encodes more than just true vs. false), but that no longer works after Clang 14 trunk <https://github.com/llvm/llvm-project/commit/c9e46219f38da5c3fbfe41012173dc893516826e> "[clang] retain type sugar in auto / template argument deduction", so just use int here as the type for which BOOL is a typedef according to <https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-dtyp/9d81be47-232e-42cf-8f0d-7a3b29bf2eb2> "BOOL". Change-Id: Ie703676e858dba915de5c4496c02db82a2735e29 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127298 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <[email protected]> diff --git a/embedserv/source/embed/tracker.cxx b/embedserv/source/embed/tracker.cxx index 2a736c39b05f..2a502671bb63 100644 --- a/embedserv/source/embed/tracker.cxx +++ b/embedserv/source/embed/tracker.cxx @@ -405,7 +405,7 @@ BOOL Tracker::TrackHandle(int nHandle,HWND hWnd,POINT point,HWND hWndClipTo) for (;;) { MSG msg; - auto const bRet = GetMessageW(&msg, nullptr, 0, 0); + int const bRet = GetMessageW(&msg, nullptr, 0, 0); SAL_WARN_IF(-1 == bRet, "embedserv", "GetMessageW failed: " << WindowsErrorString(GetLastError())); if (-1 == bRet || 0 == bRet) break; diff --git a/sfx2/source/appl/shutdowniconw32.cxx b/sfx2/source/appl/shutdowniconw32.cxx index dba876a18532..540cc76172bf 100644 --- a/sfx2/source/appl/shutdowniconw32.cxx +++ b/sfx2/source/appl/shutdowniconw32.cxx @@ -462,7 +462,7 @@ static DWORD WINAPI SystrayThread( LPVOID /*lpParam*/ ) for (;;) { - auto const bRet = GetMessageW(&msg, nullptr, 0, 0); + int const bRet = GetMessageW(&msg, nullptr, 0, 0); if (bRet == 0) { break; diff --git a/vcl/win/dtrans/MtaOleClipb.cxx b/vcl/win/dtrans/MtaOleClipb.cxx index c1caea416d13..4faba21367f2 100644 --- a/vcl/win/dtrans/MtaOleClipb.cxx +++ b/vcl/win/dtrans/MtaOleClipb.cxx @@ -660,7 +660,7 @@ unsigned int CMtaOleClipboard::run( ) for (;;) { MSG msg; - auto const bRet = GetMessageW(&msg, nullptr, 0, 0); + int const bRet = GetMessageW(&msg, nullptr, 0, 0); if (bRet == 0) { break; diff --git a/vcl/win/dtrans/target.cxx b/vcl/win/dtrans/target.cxx index a4ad523e34ee..fd4fb32a694a 100644 --- a/vcl/win/dtrans/target.cxx +++ b/vcl/win/dtrans/target.cxx @@ -210,7 +210,7 @@ DWORD WINAPI DndTargetOleSTAFunc(LPVOID pParams) // for a later call to AttachThreadInput for (;;) { - auto const bRet = GetMessageW(&msg, nullptr, 0, 0); + int const bRet = GetMessageW(&msg, nullptr, 0, 0); if (bRet == 0) { break;
