summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2016-02-23 19:21:54 +0100
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2016-02-23 20:40:51 +0100
commit7c9337dae8c27b8ff963412274aa95eaf1ec04a5 (patch)
tree9e4cd86c62421f26dbc8ea68f9fcad731669748c /src
parentc550f7a9b89d017215af084288bc44f736f774fe (diff)
basic: mark unused variable as such
Diffstat (limited to 'src')
-rw-r--r--src/basic/signal-util.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/basic/signal-util.h b/src/basic/signal-util.h
index 72b10e8712..a7322ff26a 100644
--- a/src/basic/signal-util.h
+++ b/src/basic/signal-util.h
@@ -44,9 +44,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; \
})