From 2b48cf8778730bfb745c54f97681df94cadbab83 Mon Sep 17 00:00:00 2001 From: Daniel Swarbrick Date: Thu, 14 Jun 2012 12:16:08 +0200 Subject: [PATCH] Resolve unused-but-set-variable introduced by c608ca3 and remove a line of redundant code. --- src/switch_core.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/switch_core.c b/src/switch_core.c index 2f29097008..d706563f83 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -1577,12 +1577,8 @@ SWITCH_DECLARE(switch_status_t) switch_core_init(switch_core_flag_t flags, switc static void handle_SIGCHLD(int sig) { int status = 0; - int pid = 0; - if (sig) {}; - - pid = wait(&status); - + wait(&status); return; } #endif