[Lldb-commits] [lldb] r217456 - Add a comment explaining why we're casting the local

Eric Christopher echristo at gmail.com
Tue Sep 9 12:26:45 PDT 2014


Author: echristo
Date: Tue Sep  9 14:26:45 2014
New Revision: 217456

URL: http://llvm.org/viewvc/llvm-project?rev=217456&view=rev
Log:
Add a comment explaining why we're casting the local
variable.

Modified:
    lldb/trunk/source/Interpreter/CommandInterpreter.cpp

Modified: lldb/trunk/source/Interpreter/CommandInterpreter.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/CommandInterpreter.cpp?rev=217456&r1=217455&r2=217456&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/CommandInterpreter.cpp (original)
+++ lldb/trunk/source/Interpreter/CommandInterpreter.cpp Tue Sep  9 14:26:45 2014
@@ -469,6 +469,7 @@ CommandInterpreter::LoadCommandDictionar
             char buffer[1024];
             int num_printed = snprintf(buffer, 1024, "%s %s", break_regexes[i][1], "-o");
             assert (num_printed < 1024);
+	    // Quiet unused variable warning for release builds.
 	    (void) num_printed;
             success = tbreak_regex_cmd_ap->AddRegexCommand (break_regexes[i][0], buffer);
             if (!success)





More information about the lldb-commits mailing list