From dcaaf9ff7a281910ba12e7e9f701641f6eb97262 Mon Sep 17 00:00:00 2001 From: Noel Power Date: Mon, 17 Jun 2019 15:23:42 +0000 Subject: [PATCH] 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 --- lib/util/tfork.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }