diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2020-04-05 19:57:17 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-04-05 19:57:17 -0700 |
commit | c1051ce8846ed537ba9f392fcf6760763340e2d3 (patch) | |
tree | 95d513223b2b88ec92a066cbc70893ba0faeaab7 | |
parent | 57082be9c6bacf7df9beb62addcc8dc092d09fbb (diff) | |
download | txr-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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 \ } \ |