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
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user