diff options
author | Michael Bradshaw <mjbshaw@google.com> | 2019-08-14 03:12:20 +0300 |
---|---|---|
committer | Henrik Gramner <gramner@twoorioles.com> | 2019-08-14 03:12:20 +0300 |
commit | d20d70e83704f2c64855a2a605c0c39aaaf39e1a (patch) | |
tree | b7c322890fd1dd21e176141437a892607fcac4c1 /src/thread.h | |
parent | 0f4edbff255cfa8aa5ee35242e393017b223ffdc (diff) |
Prefer `do {} while (0);` over `while (0);`
Diffstat (limited to 'src/thread.h')
-rw-r--r-- | src/thread.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/thread.h b/src/thread.h index 1503c66..f3a35d1 100644 --- a/src/thread.h +++ b/src/thread.h @@ -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 |