ref: d20d70e83704f2c64855a2a605c0c39aaaf39e1a
parent: 0f4edbff255cfa8aa5ee35242e393017b223ffdc
author: Michael Bradshaw <[email protected]>
date: Tue Aug 13 22:12:20 EDT 2019
Prefer `do {} while (0);` over `while (0);`
--- a/src/thread.h
+++ b/src/thread.h
@@ -130,7 +130,7 @@
#include <pthread.h>
-#define dav1d_init_thread() while (0)
+#define dav1d_init_thread() do {} while (0)
/* Thread naming support */
@@ -169,7 +169,7 @@
#else
-#define dav1d_set_thread_name(name) while (0)
+#define dav1d_set_thread_name(name) do {} while (0)
#endif
--- a/tests/checkasm/checkasm.h
+++ b/tests/checkasm/checkasm.h
@@ -279,7 +279,7 @@
}\
} while (0)
#else
-#define bench_new(...) while (0)
+#define bench_new(...) do {} while (0)
#endif
#define DECL_CHECKASM_CHECK_FUNC(type) \