From 5bd9de5e367d926e538acb927b2c776784e90965 Mon Sep 17 00:00:00 2001 From: Nick Briggs Date: Tue, 21 Feb 2023 12:06:28 -0800 Subject: [PATCH] Suppress empty-statement warning for XLOCK/XUNLOCK macro when not doing locking --- inc/xdefs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/xdefs.h b/inc/xdefs.h index d87ae6e..a193692 100755 --- a/inc/xdefs.h +++ b/inc/xdefs.h @@ -49,8 +49,8 @@ extern volatile sig_atomic_t XNeedSignal; XLocked--; \ } while (0) #else -#define XLOCK -#define XUNLOCK(dsp) +#define XLOCK do {} while (0) +#define XUNLOCK(dsp) do {} while (0) #endif /* LOCK_X_UPDATES */ #endif /* XDEFS_H */