From: Noel Power Date: Mon, 17 Jun 2019 15:23:42 +0000 (+0000) Subject: lib/util: Fix Value stored to 'ret' is never read warning X-Git-Tag: ldb-2.0.5~125 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dcaaf9ff7a281910ba12e7e9f701641f6eb97262;p=thirdparty%2Fsamba.git lib/util: Fix Value stored to 'ret' is never read warning Fixes: lib/util/tfork.c:260:3: warning: Value stored to 'ret' is never read <--[clang] Signed-off-by: Noel Power Reviewed-by: Gary Lockyer --- diff --git a/lib/util/tfork.c b/lib/util/tfork.c index 4a5c08f7d79..16ea002b87c 100644 --- a/lib/util/tfork.c +++ b/lib/util/tfork.c @@ -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; }