summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/Options.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-10-31 23:51:19 +0000
committerGreg Clayton <gclayton@apple.com>2011-10-31 23:51:19 +0000
commit9d3d6886e6a6767434bc341a41df23ffc947606e (patch)
treef52a7be800507ec8e12fa7cf250a0297d828ce75 /lldb/source/Interpreter/Options.cpp
parent549f737453d1de96c61df8146edcff48b9b20877 (diff)
downloadbcm5719-llvm-9d3d6886e6a6767434bc341a41df23ffc947606e.tar.gz
bcm5719-llvm-9d3d6886e6a6767434bc341a41df23ffc947606e.zip
Fixed some warnings after enabling some stricter warnings in the Xcode project
settings. Also fixed an issue where we weren't creating anonymous namepaces correctly: <rdar://problem/10371295> llvm-svn: 143403
Diffstat (limited to 'lldb/source/Interpreter/Options.cpp')
-rw-r--r--lldb/source/Interpreter/Options.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lldb/source/Interpreter/Options.cpp b/lldb/source/Interpreter/Options.cpp
index b795f233149..dbe65798be8 100644
--- a/lldb/source/Interpreter/Options.cpp
+++ b/lldb/source/Interpreter/Options.cpp
@@ -375,11 +375,9 @@ Options::SupportsLongOption (const char *long_option)
const OptionDefinition *opt_defs = GetDefinitions ();
if (opt_defs)
{
- const char *long_option_name;
+ const char *long_option_name = long_option;
if (long_option[0] == '-' && long_option[1] == '-')
long_option_name += 2;
- else
- long_option_name = long_option;
for (uint32_t i = 0; opt_defs[i].long_option; ++i)
{
OpenPOWER on IntegriCloud