summaryrefslogtreecommitdiffstats
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
commitc1051ce8846ed537ba9f392fcf6760763340e2d3 (patch)
tree95d513223b2b88ec92a066cbc70893ba0faeaab7
parent57082be9c6bacf7df9beb62addcc8dc092d09fbb (diff)
downloadtxr-c1051ce8846ed537ba9f392fcf6760763340e2d3.tar.gz
txr-c1051ce8846ed537ba9f392fcf6760763340e2d3.tar.bz2
txr-c1051ce8846ed537ba9f392fcf6760763340e2d3.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.
-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 \
} \