[Lldb-commits] [lldb] r319943 - Fix the -Wunused-function warning properly (MachProcess.mm)

Vedant Kumar via lldb-commits lldb-commits at lists.llvm.org
Wed Dec 6 11:27:21 PST 2017


Author: vedantk
Date: Wed Dec  6 11:27:20 2017
New Revision: 319943

URL: http://llvm.org/viewvc/llvm-project?rev=319943&view=rev
Log:
Fix the -Wunused-function warning properly (MachProcess.mm)

r319938 was not NFC, because it got the preprocessor guard wrong. Check
WITH_FBS and WITH_BKS before defining SplitEventData.

Modified:
    lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.mm

Modified: lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.mm
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.mm?rev=319943&r1=319942&r2=319943&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.mm (original)
+++ lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.mm Wed Dec  6 11:27:20 2017
@@ -190,7 +190,7 @@ static bool CallBoardSystemServiceOpenAp
 }
 #endif
 
-#if defined(WITH_FBS) || defined(WITH_FBS)
+#if defined(WITH_BKS) || defined(WITH_FBS)
 static void SplitEventData(const char *data, std::vector<std::string> &elements)
 {
   elements.clear();




More information about the lldb-commits mailing list