From 76016ba1ca86b2b25eca168aa6216ebd8e1fc3b9 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Thu, 7 Feb 2019 13:51:38 +0000 Subject: Fix some warnings introduced in r353324 (ReproducerInstrumentation patch) GetIndexForObjectImpl generated a bunch of "conversion casts away constness warnings". Change the function to use "const void *" (and static_cast, while I'm at it), to avoid this. Driver.cpp: unused variable "replay" (this was actually caused by a subsequent partial revert of this patch). I just finish the revert by removing the variable completely. llvm-svn: 353405 --- lldb/tools/driver/Driver.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'lldb/tools/driver/Driver.cpp') diff --git a/lldb/tools/driver/Driver.cpp b/lldb/tools/driver/Driver.cpp index 59bfca6f2ff..2aaaa05d751 100644 --- a/lldb/tools/driver/Driver.cpp +++ b/lldb/tools/driver/Driver.cpp @@ -888,9 +888,6 @@ main(int argc, char const *argv[]) << '\n'; } - // Remember if we're in replay mode for later. - bool replay = false; - SBInitializerOptions options; if (auto *arg = input_args.getLastArg(OPT_capture)) { auto arg_value = arg->getValue(); @@ -902,7 +899,6 @@ main(int argc, char const *argv[]) auto arg_value = arg->getValue(); options.SetReplayReproducer(true); options.SetReproducerPath(arg_value); - replay = true; } SBError error = SBDebugger::Initialize(options); -- cgit v1.2.1