]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib/util: Fix Value stored to 'ret' is never read warning
authorNoel Power <noel.power@suse.com>
Mon, 17 Jun 2019 15:23:42 +0000 (15:23 +0000)
committerNoel Power <npower@samba.org>
Mon, 1 Jul 2019 13:34:10 +0000 (13:34 +0000)
Fixes:

lib/util/tfork.c:260:3: warning: Value stored to 'ret' is never read <--[clang]

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
lib/util/tfork.c

index 4a5c08f7d7970d0a646a20ad07e636708767afd4..16ea002b87c49885d1e9e93cad7daed79a4db635 100644 (file)
@@ -260,8 +260,8 @@ static void tfork_atfork_child(void)
                ret = pthread_sigmask(SIG_SETMASK, &signal_state.oldset, NULL);
 #else
                ret = sigprocmask(SIG_SETMASK, &signal_state.oldset, NULL);
-               assert(ret == 0);
 #endif
+               assert(ret == 0);
 
                signal_state.pid = NULL;
        }