Commit d20d70e8 authored by Michael Bradshaw's avatar Michael Bradshaw Committed by Henrik Gramner

Prefer `do {} while (0);` over `while (0);`

parent 0f4edbff
Pipeline #8912 passed with stages
in 5 minutes and 24 seconds
......@@ -130,7 +130,7 @@ static inline int pthread_cond_broadcast(pthread_cond_t *const cond) {
#include <pthread.h>
#define dav1d_init_thread() while (0)
#define dav1d_init_thread() do {} while (0)
/* Thread naming support */
......@@ -169,7 +169,7 @@ static inline void dav1d_set_thread_name(const char *const name) {
#else
#define dav1d_set_thread_name(name) while (0)
#define dav1d_set_thread_name(name) do {} while (0)
#endif
......
......@@ -279,7 +279,7 @@ void checkasm_stack_clobber(uint64_t clobber, ...);
}\
} while (0)
#else
#define bench_new(...) while (0)
#define bench_new(...) do {} while (0)
#endif
#define DECL_CHECKASM_CHECK_FUNC(type) \
......
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