summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2015-10-18 19:34:38 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2015-10-18 19:34:38 +0000
commitba507b04e178f6a3b25003231ac2038a90d1d98c (patch)
tree890696e86092fe18fffec4c23fd7e925d51fa4f8 /lldb/source/Interpreter
parent8b8d2a4d999a392ebb90a5e6e739549314a3b52b (diff)
downloadbcm5719-llvm-ba507b04e178f6a3b25003231ac2038a90d1d98c.tar.gz
bcm5719-llvm-ba507b04e178f6a3b25003231ac2038a90d1d98c.zip
Silence -Wqual-cast warnings from GCC 5.2
There were a number of const qualifiers being cast away which caused warnings. This cluttered the output hiding real errors. Silence them by explicit casting. NFC. llvm-svn: 250662
Diffstat (limited to 'lldb/source/Interpreter')
-rw-r--r--lldb/source/Interpreter/Args.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Interpreter/Args.cpp b/lldb/source/Interpreter/Args.cpp
index d9371fe9fa9..7c9f5c35ecb 100644
--- a/lldb/source/Interpreter/Args.cpp
+++ b/lldb/source/Interpreter/Args.cpp
@@ -371,7 +371,7 @@ char **
Args::GetArgumentVector()
{
if (!m_argv.empty())
- return (char **)&m_argv[0];
+ return const_cast<char **>(&m_argv[0]);
return nullptr;
}
@@ -379,7 +379,7 @@ const char **
Args::GetConstArgumentVector() const
{
if (!m_argv.empty())
- return (const char **)&m_argv[0];
+ return const_cast<const char **>(&m_argv[0]);
return nullptr;
}
@@ -1387,7 +1387,7 @@ Args::ParseArgsForCompletion
int long_options_index = -1;
val = OptionParser::Parse (dummy_vec.size() - 1,
- (char *const *) &dummy_vec.front(),
+ const_cast<char *const *>(&dummy_vec.front()),
sstr.GetData(),
long_options,
&long_options_index);
OpenPOWER on IntegriCloud