From 5f6ec4fff685089bbbf0abf324cb5b0614a79121 Mon Sep 17 00:00:00 2001 From: Chris Peterson Date: Wed, 11 Nov 2015 21:18:20 -0800 Subject: [PATCH] Bug 1223262 - Fix -Wunreachable-code warning in tools/profiler. r=BenWa tools/profiler/core/platform-linux.cc:363:11: warning: code will never be executed [-Wunreachable-code] --- tools/profiler/core/platform-linux.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/profiler/core/platform-linux.cc b/tools/profiler/core/platform-linux.cc index caf7326b1bd..0df1e8f087c 100644 --- a/tools/profiler/core/platform-linux.cc +++ b/tools/profiler/core/platform-linux.cc @@ -359,8 +359,9 @@ static void* SignalSender(void* arg) { printf_stderr("profiler failed to signal tid=%d\n", threadId); #ifdef DEBUG abort(); -#endif +#else continue; +#endif } // Wait for the signal handler to run before moving on to the next one