[Lldb-commits] [PATCH] D67895: [LLDB] Avoid a warning about an unused static variable

Martin Storsjö via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sun Sep 22 12:19:31 PDT 2019


mstorsjo created this revision.
mstorsjo added reviewers: hhb, compnerd, amccarth.
Herald added a subscriber: JDevlieghere.
Herald added a project: LLDB.

The variable is unused on windows.


Repository:
  rLLDB LLDB

https://reviews.llvm.org/D67895

Files:
  lldb/tools/lldb-server/lldb-gdbserver.cpp


Index: lldb/tools/lldb-server/lldb-gdbserver.cpp
===================================================================
--- lldb/tools/lldb-server/lldb-gdbserver.cpp
+++ lldb/tools/lldb-server/lldb-gdbserver.cpp
@@ -108,10 +108,10 @@
     {"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;
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67895.221226.patch
Type: text/x-patch
Size: 494 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190922/89ef5f9f/attachment-0001.bin>


More information about the lldb-commits mailing list