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 | 507fecc73fd4a141862861e7f4e2cc08e3fef38e (patch) | |
tree | 95d513223b2b88ec92a066cbc70893ba0faeaab7 /signal.h | |
parent | 2f4e803874067b1b6b8c372794b83ee2fc9fbf3a (diff) | |
download | txr-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.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 \ } \ |