summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectPlatform.cpp
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2015-02-03 07:59:26 +0000
committerBruce Mitchener <bruce.mitchener@gmail.com>2015-02-03 07:59:26 +0000
commitfd3cd13af565027b6093f08c0b5a88789d992952 (patch)
tree496aa95d3bb28c22dc322a915ce8ed015e05d6b1 /lldb/source/Commands/CommandObjectPlatform.cpp
parent7d82131abef5e1653b0798abd220768d0ca5c704 (diff)
downloadbcm5719-llvm-fd3cd13af565027b6093f08c0b5a88789d992952.tar.gz
bcm5719-llvm-fd3cd13af565027b6093f08c0b5a88789d992952.zip
Cast to (const OptionPermissions*) to avoid warning.
Reviewers: clayborg Reviewed By: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D7336 llvm-svn: 227951
Diffstat (limited to 'lldb/source/Commands/CommandObjectPlatform.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectPlatform.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectPlatform.cpp b/lldb/source/Commands/CommandObjectPlatform.cpp
index 29d80260093..eaab99acc22 100644
--- a/lldb/source/Commands/CommandObjectPlatform.cpp
+++ b/lldb/source/Commands/CommandObjectPlatform.cpp
@@ -616,7 +616,7 @@ public:
std::string cmd_line;
args.GetCommandString(cmd_line);
uint32_t mode;
- const OptionPermissions* options_permissions = (OptionPermissions*)m_options.GetGroupWithOption('r');
+ const OptionPermissions* options_permissions = (const OptionPermissions*)m_options.GetGroupWithOption('r');
if (options_permissions)
mode = options_permissions->m_permissions;
else
@@ -685,7 +685,7 @@ public:
std::string cmd_line;
args.GetCommandString(cmd_line);
mode_t perms;
- const OptionPermissions* options_permissions = (OptionPermissions*)m_options.GetGroupWithOption('r');
+ const OptionPermissions* options_permissions = (const OptionPermissions*)m_options.GetGroupWithOption('r');
if (options_permissions)
perms = options_permissions->m_permissions;
else
OpenPOWER on IntegriCloud