From beb54470b9641c50cc5d2f1e70b572f72428d8c9 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Tue, 29 Jun 2021 19:51:05 +0200 Subject: irmd: Fix unused variable in builds without fuse The mode_t mask wasn't guarded by ifdefs. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/irmd/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/irmd/main.c b/src/irmd/main.c index 8ca0a1d6..22d94136 100644 --- a/src/irmd/main.c +++ b/src/irmd/main.c @@ -2292,8 +2292,9 @@ static int irm_init(void) { struct stat st; pthread_condattr_t cattr; +#ifdef HAVE_FUSE mode_t mask; - +#endif memset(&st, 0, sizeof(st)); if (pthread_rwlock_init(&irmd.state_lock, NULL)) { -- cgit v1.2.3