diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-01-27 16:47:36 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-01-27 16:47:36 +0100 |
commit | 147d1dbb9d87ef73175e91d34d66d6bb4189a11e (patch) | |
tree | a243da567bd665912acc1e234122bb44d7779f8c | |
parent | 4f66dc23900265f6cab8772de2134cb6bebe1945 (diff) | |
download | glibc-147d1dbb9d87ef73175e91d34d66d6bb4189a11e.tar.gz glibc-147d1dbb9d87ef73175e91d34d66d6bb4189a11e.tar.xz glibc-147d1dbb9d87ef73175e91d34d66d6bb4189a11e.zip |
hurd: fix warnings
* sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset, __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really return 0.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | sysdeps/generic/sigsetops.h | 12 |
2 files changed, 9 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog index 7284b25b78..c52aa4266c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,9 @@ <sys/wait.h>, <time.h>, <sys/uio.h>. (NOT_CANCEL_H): Add inclusion guard. * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>. + * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset, + __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really + return 0. 2018-01-27 James Clarke <jrtc27@jrtc27.com> diff --git a/sysdeps/generic/sigsetops.h b/sysdeps/generic/sigsetops.h index 02bc728c06..52b0e79071 100644 --- a/sysdeps/generic/sigsetops.h +++ b/sysdeps/generic/sigsetops.h @@ -28,12 +28,12 @@ #define __sigemptyset(set) \ (__extension__ ({ \ *(set) = (__sigset_t) 0; \ - (void)0; \ + 0; \ })) #define __sigfillset(set) \ (__extension__ ({ \ *(set) = ~(__sigset_t) 0; \ - (void)0; \ + 0; \ })) # define __sigisemptyset(set) \ @@ -42,13 +42,13 @@ # define __sigandset(dest, left, right) \ (__extension__ ({ \ *(dest) = *(left) & *(right); \ - (void)0; \ + 0; \ })) # define __sigorset(dest, left, right) \ (__extension__ ({ \ *(dest) = *(left) | *(right); \ - (void)0; \ + 0; \ })) /* These macros needn't check for a bogus signal number; @@ -63,14 +63,14 @@ (__extension__ ({ \ __sigset_t __mask = __sigmask (sig); \ *(set) |= __mask; \ - (void)0; \ + 0; \ })) # define __sigdelset(set, sig) \ (__extension__ ({ \ __sigset_t __mask = __sigmask (sig); \ *(set) &= ~__mask; \ - (void)0; \ + 0; \ })) #endif |