[Lldb-commits] [lldb] r372589 - [LLDB] Avoid a warning about an unused static variable

Martin Storsjo via lldb-commits lldb-commits at lists.llvm.org
Mon Sep 23 05:03:21 PDT 2019


Author: mstorsjo
Date: Mon Sep 23 05:03:21 2019
New Revision: 372589

URL: http://llvm.org/viewvc/llvm-project?rev=372589&view=rev
Log:
[LLDB] Avoid a warning about an unused static variable

The variable is unused on windows.

Differential Revision: https://reviews.llvm.org/D67895

Modified:
    lldb/trunk/tools/lldb-server/lldb-gdbserver.cpp

Modified: lldb/trunk/tools/lldb-server/lldb-gdbserver.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-server/lldb-gdbserver.cpp?rev=372589&r1=372588&r2=372589&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-server/lldb-gdbserver.cpp (original)
+++ lldb/trunk/tools/lldb-server/lldb-gdbserver.cpp Mon Sep 23 05:03:21 2019
@@ -108,10 +108,10 @@ static struct option g_long_options[] =
     {"fd", required_argument, nullptr, 'F'},
     {nullptr, 0, nullptr, 0}};
 
+#ifndef _WIN32
 // Watch for signals
 static int g_sighup_received_count = 0;
 
-#ifndef _WIN32
 static void sighup_handler(MainLoopBase &mainloop) {
   ++g_sighup_received_count;
 




More information about the lldb-commits mailing list