chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6eed9ed
)
basic: mark unused variable as such
author
Thomas Hindoe Paaboel Andersen
<phomes@gmail.com>
Tue, 23 Feb 2016 18:21:54 +0000
(19:21 +0100)
committer
Sven Eden
<yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:12:57 +0000
(10:12 +0200)
src/basic/signal-util.h
patch
|
blob
|
history
diff --git
a/src/basic/signal-util.h
b/src/basic/signal-util.h
index 7013c51a3d9aaa4385ec3321bd405b6a107f5e25..cbdb6ce33aac06b5bd58928f2052208079f3e423 100644
(file)
--- a/
src/basic/signal-util.h
+++ b/
src/basic/signal-util.h
@@
-48,9
+48,9
@@
static inline void block_signals_reset(sigset_t *ss) {
assert_se(sigprocmask(SIG_SETMASK, ss, NULL) >= 0);
}
-#define BLOCK_SIGNALS(...) \
- _cleanup_(block_signals_reset)
sigset_t _saved_sigset = ({
\
- sigset_t t; \
+#define BLOCK_SIGNALS(...)
\
+ _cleanup_(block_signals_reset)
_unused_ sigset_t _saved_sigset = ({
\
+ sigset_t t;
\
assert_se(sigprocmask_many(SIG_BLOCK, &t, __VA_ARGS__, -1) >= 0); \
- t; \
+ t;
\
})