aboutsummaryrefslogtreecommitdiff
path: root/bits
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2014-02-07 15:26:28 -0800
committerRoland McGrath <roland@hack.frob.com>2014-02-07 15:26:28 -0800
commit32749f6cd23f65a2df1bafbf9b69749bdded4b10 (patch)
tree286f6a962fd5c4b8e539cc59d4f6b2f8b0b1edc2 /bits
parentd5b396c1c89ed3026fc89bfcdd72b14d59972e45 (diff)
downloadglibc-32749f6cd23f65a2df1bafbf9b69749bdded4b10.tar
glibc-32749f6cd23f65a2df1bafbf9b69749bdded4b10.tar.gz
glibc-32749f6cd23f65a2df1bafbf9b69749bdded4b10.tar.bz2
glibc-32749f6cd23f65a2df1bafbf9b69749bdded4b10.zip
Avoid comma operator warnings.
Diffstat (limited to 'bits')
-rw-r--r--bits/sigset.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/bits/sigset.h b/bits/sigset.h
index 23a6c1fd83..e5fac54ede 100644
--- a/bits/sigset.h
+++ b/bits/sigset.h
@@ -44,15 +44,17 @@ typedef unsigned long int __sigset_t;
overflow if `sigset_t' is wider than `int'. */
#define __sigmask(sig) (((__sigset_t) 1) << ((sig) - 1))
-#define __sigemptyset(set) ((*(set) = (__sigset_t) 0), 0)
-#define __sigfillset(set) ((*(set) = ~(__sigset_t) 0), 0)
+#define __sigemptyset(set) \
+ (__extension__ ({ *(set) = (__sigset_t) 0; 0; })
+#define __sigfillset(set) \
+ (__extension__ ({ *(set) = ~(__sigset_t) 0; 0; }))
#ifdef _GNU_SOURCE
# define __sigisemptyset(set) (*(set) == (__sigset_t) 0)
# define __sigandset(dest, left, right) \
- ((*(dest) = (*(left) & *(right))), 0)
+ (__extension__ ({ *(dest) = *(left) & *(right); 0; }))
# define __sigorset(dest, left, right) \
- ((*(dest) = (*(left) | *(right))), 0)
+ (__extension__ ({ *(dest) = *(left) | *(right); 0; }))
#endif
/* These functions needn't check for a bogus signal number -- error