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:
Vadim Zeitlin
2010-09-26 22:11:10 +00:00
parent 36b7e3a2ec
commit 784a3130f8

View File

@@ -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