]> git.saurik.com Git - wxWidgets.git/commitdiff
Warning fix.
authorWłodzimierz Skiba <abx@abx.art.pl>
Wed, 22 Mar 2006 14:39:47 +0000 (14:39 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Wed, 22 Mar 2006 14:39:47 +0000 (14:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38268 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/debug.h

index 54573e37a2e1135c203cf871cd278c706c2f3500..50d938e1a9acb5ffde2eafe1c0cce3ef4b421007 100644 (file)
     if ( cond )                                                               \
         ;                                                                     \
     else                                                                      \
-        do                                                                    \
-        {                                                                     \
-            wxFAIL_COND_MSG(#cond, msg);                                      \
-            op;                                                               \
-        } while ( 0 )
+    {                                                                         \
+        wxFAIL_COND_MSG(#cond, msg);                                          \
+        op;                                                                   \
+    }                                                                         \
+    struct wxDummyCheckStruct /* just to force a semicolon */
 
 /*  special form of wxCHECK2: as wxCHECK, but for use in void functions */
 /*  */