summaryrefslogtreecommitdiffstats
path: root/lldb/tools/debugserver/source/DNB.cpp
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2014-10-15 23:13:51 +0000
committerJason Molenda <jmolenda@apple.com>2014-10-15 23:13:51 +0000
commitaeb9a06ff50fde033d442e7757cab1bb36e3b684 (patch)
tree6d8857019161b9e4fbf915163f23df519107269f /lldb/tools/debugserver/source/DNB.cpp
parent42e929f7733955ca4144e8c3ba7cab5f8156e145 (diff)
downloadbcm5719-llvm-aeb9a06ff50fde033d442e7757cab1bb36e3b684.tar.gz
bcm5719-llvm-aeb9a06ff50fde033d442e7757cab1bb36e3b684.zip
Fix unused-variable warnings from the clang static analyzer.
llvm-svn: 219863
Diffstat (limited to 'lldb/tools/debugserver/source/DNB.cpp')
-rw-r--r--lldb/tools/debugserver/source/DNB.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/lldb/tools/debugserver/source/DNB.cpp b/lldb/tools/debugserver/source/DNB.cpp
index 304c655921d..c6a3dbe696b 100644
--- a/lldb/tools/debugserver/source/DNB.cpp
+++ b/lldb/tools/debugserver/source/DNB.cpp
@@ -192,24 +192,20 @@ kqueue_thread (void *arg)
bool exited = false;
int signal = 0;
int exit_status = 0;
- const char *status_cstr = NULL;
if (WIFSTOPPED(status))
{
signal = WSTOPSIG(status);
- status_cstr = "STOPPED";
DNBLogThreadedIf(LOG_PROCESS, "waitpid (%i) -> STOPPED (signal = %i)", child_pid, signal);
}
else if (WIFEXITED(status))
{
exit_status = WEXITSTATUS(status);
- status_cstr = "EXITED";
exited = true;
DNBLogThreadedIf(LOG_PROCESS, "waitpid (%i) -> EXITED (status = %i)", child_pid, exit_status);
}
else if (WIFSIGNALED(status))
{
signal = WTERMSIG(status);
- status_cstr = "SIGNALED";
if (child_pid == abs(pid))
{
DNBLogThreadedIf(LOG_PROCESS, "waitpid (%i) -> SIGNALED and EXITED (signal = %i)", child_pid, signal);
OpenPOWER on IntegriCloud