[Lldb-commits] [lldb] r224468 - Fix a format string warning by noting that StringIsBreakpointName
Eric Christopher
echristo at gmail.com
Wed Dec 17 14:26:33 PST 2014
Author: echristo
Date: Wed Dec 17 16:26:32 2014
New Revision: 224468
URL: http://llvm.org/viewvc/llvm-project?rev=224468&view=rev
Log:
Fix a format string warning by noting that StringIsBreakpointName
will set the error accordingly and so there's no need to set it
again.
Modified:
lldb/trunk/source/Commands/CommandObjectBreakpoint.cpp
Modified: lldb/trunk/source/Commands/CommandObjectBreakpoint.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectBreakpoint.cpp?rev=224468&r1=224467&r2=224468&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectBreakpoint.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectBreakpoint.cpp Wed Dec 17 16:26:32 2014
@@ -245,8 +245,6 @@ public:
case 'N':
if (BreakpointID::StringIsBreakpointName(option_arg, error))
m_breakpoint_names.push_back (option_arg);
- else
- error.SetErrorStringWithFormat(error.AsCString());
break;
case 'o':
More information about the lldb-commits
mailing list