summaryrefslogtreecommitdiffstats
path: root/signal.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-04-05 19:57:17 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-04-05 19:57:17 -0700
commit507fecc73fd4a141862861e7f4e2cc08e3fef38e (patch)
tree95d513223b2b88ec92a066cbc70893ba0faeaab7 /signal.h
parent2f4e803874067b1b6b8c372794b83ee2fc9fbf3a (diff)
downloadtxr-507fecc73fd4a141862861e7f4e2cc08e3fef38e.tar.gz
txr-507fecc73fd4a141862861e7f4e2cc08e3fef38e.tar.bz2
txr-507fecc73fd4a141862861e7f4e2cc08e3fef38e.zip
warning cleanup: empty do/while style.
This is the fifth round of an effort to enable GCC's -Wextra option. * signal.h (sig_save_enable, sig_save_disable): Fix the compiler warning about do ; while (0) benefiting from braces around the empty statement. I agree with this; I was momentarily confused myself by that semicolon.
Diffstat (limited to 'signal.h')
-rw-r--r--signal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/signal.h b/signal.h
index c3e5375f..3a83cbe0 100644
--- a/signal.h
+++ b/signal.h
@@ -40,7 +40,7 @@ extern small_sigset_t sig_blocked_cache;
sig_check(); \
async_sig_enabled = 1; \
{ \
- do ; while (0)
+ do { } while (0)
#define sig_restore_enable \
} \
@@ -52,7 +52,7 @@ extern small_sigset_t sig_blocked_cache;
int sig_save = async_sig_enabled; \
async_sig_enabled = 0; \
{ \
- do ; while (0)
+ do { } while (0)
#define sig_restore_disable \
} \