basic: mark unused variable as such
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Tue, 23 Feb 2016 18:21:54 +0000 (19:21 +0100)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Tue, 23 Feb 2016 19:40:51 +0000 (20:40 +0100)
src/basic/signal-util.h

index 72b10e8..a7322ff 100644 (file)
@@ -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;                                                                \
         })