diff options
author | Greg Clayton <gclayton@apple.com> | 2011-01-25 23:55:37 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2011-01-25 23:55:37 +0000 |
commit | 1a65ae11bd65d007391473f8bde3d06f4abad740 (patch) | |
tree | 12bcbcdd2564d2bf305c3642ebe3a0b80128beb7 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.cpp | |
parent | 3ae681eb1240f09af37936663760526ed1b324cf (diff) | |
download | llvm-1a65ae11bd65d007391473f8bde3d06f4abad740.zip llvm-1a65ae11bd65d007391473f8bde3d06f4abad740.tar.gz llvm-1a65ae11bd65d007391473f8bde3d06f4abad740.tar.bz2 |
Enabled extra warnings and fixed a bunch of small issues.
llvm-svn: 124250
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.cpp index 044edd0..0c019bf 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.cpp @@ -96,12 +96,10 @@ ProcessGDBRemoteLog::EnableLog (StreamSP &log_stream_sp, uint32_t log_options, A { // Try see if there already is a log - that way we can reuse its settings. // We could reuse the log in toto, but we don't know that the stream is the same. - uint32_t flag_bits; + uint32_t flag_bits = 0; LogSP log(GetLog ()); if (log) flag_bits = log->GetMask().Get(); - else - flag_bits = 0; // Now make a new log with this stream if one was provided if (log_stream_sp) @@ -112,7 +110,6 @@ ProcessGDBRemoteLog::EnableLog (StreamSP &log_stream_sp, uint32_t log_options, A if (log) { - uint32_t flag_bits = 0; bool got_unknown_category = false; const size_t argc = args.GetArgumentCount(); for (size_t i=0; i<argc; ++i) |