summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/LanguageRuntime
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2015-07-24 00:23:29 +0000
committerBruce Mitchener <bruce.mitchener@gmail.com>2015-07-24 00:23:29 +0000
commit8a67bf72984123302da6521d66a51f9c09a9504b (patch)
tree2dd1b32dd9de2d739c8dd947b546764dc28d1ef6 /lldb/source/Plugins/LanguageRuntime
parentff8fbf9f90540478663bcd02f42a2fa30cfed543 (diff)
downloadbcm5719-llvm-8a67bf72984123302da6521d66a51f9c09a9504b.tar.gz
bcm5719-llvm-8a67bf72984123302da6521d66a51f9c09a9504b.zip
Add UNUSED_IF_ASSERT_DISABLED and apply it.
Summary: This replaces (void)x; usages where they x was subsequently involved in an assertion with this macro to make the intent more clear. Reviewers: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D11451 llvm-svn: 243074
Diffstat (limited to 'lldb/source/Plugins/LanguageRuntime')
-rw-r--r--lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeEncodingParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeEncodingParser.cpp b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeEncodingParser.cpp
index dfb609445f3..10f7f82828b 100644
--- a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeEncodingParser.cpp
+++ b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeEncodingParser.cpp
@@ -44,7 +44,7 @@ AppleObjCTypeEncodingParser::ReadQuotedString(lldb_utility::StringLexer& type)
while (type.HasAtLeast(1) && type.Peek() != '"')
buffer.Printf("%c",type.Next());
StringLexer::Character next = type.Next();
- (void) next; // Avoid warnings when assertions are off.
+ UNUSED_IF_ASSERT_DISABLED(next);
assert (next == '"');
return buffer.GetString();
}
OpenPOWER on IntegriCloud