Commit f1d6c559 authored by marko's avatar marko

branches/zip: UT_DBG_STOP: Use do{} while(0) to silence a g++-4.3.2 warning

about a while(0); statement.  This should fix (part of) Issue #176.
parent a5304a28
...@@ -55,7 +55,7 @@ extern ibool panic_shutdown; ...@@ -55,7 +55,7 @@ extern ibool panic_shutdown;
void ut_dbg_panic(void); void ut_dbg_panic(void);
# define UT_DBG_PANIC ut_dbg_panic() # define UT_DBG_PANIC ut_dbg_panic()
/* Stop threads in ut_a(). */ /* Stop threads in ut_a(). */
# define UT_DBG_STOP while (0) /* We do not do this on NetWare */ # define UT_DBG_STOP do {} while (0) /* We do not do this on NetWare */
#else /* __NETWARE__ */ #else /* __NETWARE__ */
# if defined(__WIN__) || defined(__INTEL_COMPILER) # if defined(__WIN__) || defined(__INTEL_COMPILER)
# undef UT_DBG_USE_ABORT # undef UT_DBG_USE_ABORT
...@@ -87,7 +87,7 @@ ut_dbg_stop_thread( ...@@ -87,7 +87,7 @@ ut_dbg_stop_thread(
/* Abort the execution. */ /* Abort the execution. */
# define UT_DBG_PANIC abort() # define UT_DBG_PANIC abort()
/* Stop threads (null operation) */ /* Stop threads (null operation) */
# define UT_DBG_STOP while (0) # define UT_DBG_STOP do {} while (0)
# else /* UT_DBG_USE_ABORT */ # else /* UT_DBG_USE_ABORT */
/* Abort the execution. */ /* Abort the execution. */
# define UT_DBG_PANIC \ # define UT_DBG_PANIC \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment