From 784a3130f8d2b63d5b02ce6e8c7496269df63731 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 26 Sep 2010 22:11:10 +0000 Subject: [PATCH] Correct g++ 4.x warnings about suggested explicit braces. Several warnings were generated for wxLogLastError() calls inside CALL_CARET_API macro by MinGW 4.4. Fix them by adding the extra braces. See also r61475. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/caret.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/msw/caret.cpp b/src/msw/caret.cpp index 63ca6a8de3..a7c7d63d90 100644 --- a/src/msw/caret.cpp +++ b/src/msw/caret.cpp @@ -39,9 +39,11 @@ // macros // --------------------------------------------------------------------------- -#define CALL_CARET_API(api, args) \ - if ( !api args ) \ - wxLogLastError(wxT(#api)) +#define CALL_CARET_API(api, args) \ + if ( !api args ) \ + { \ + wxLogLastError(wxT(#api)); \ + } // =========================================================================== // implementation -- 2.45.2