diff mbox series

[hurd,commited,6/7] hurd: fix warnings

Message ID 20180127155629.23644-7-samuel.thibault@ens-lyon.org
State New
Headers show
Series warning fixes | expand

Commit Message

Samuel Thibault Jan. 27, 2018, 3:56 p.m. UTC
* sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
	__sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
	return 0.
---
 ChangeLog                   |  3 +++
 sysdeps/generic/sigsetops.h | 12 ++++++------
 2 files changed, 9 insertions(+), 6 deletions(-)
diff mbox series

Patch

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