[Lldb-commits] [lldb] r355464 - [Reproducers] Fix warnings without asserts
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Tue Mar 5 16:52:48 PST 2019
Author: jdevlieghere
Date: Tue Mar 5 16:52:48 2019
New Revision: 355464
URL: http://llvm.org/viewvc/llvm-project?rev=355464&view=rev
Log:
[Reproducers] Fix warnings without asserts
Make sure the variable is used when asserts are compiled out.
Modified:
lldb/trunk/include/lldb/Utility/ReproducerInstrumentation.h
Modified: lldb/trunk/include/lldb/Utility/ReproducerInstrumentation.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Utility/ReproducerInstrumentation.h?rev=355464&r1=355463&r2=355464&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Utility/ReproducerInstrumentation.h (original)
+++ lldb/trunk/include/lldb/Utility/ReproducerInstrumentation.h Tue Mar 5 16:52:48 2019
@@ -261,6 +261,7 @@ public:
void HandleReplayResultVoid() {
unsigned result = Deserialize<unsigned>();
assert(result == 0);
+ (void)result;
}
private:
More information about the lldb-commits
mailing list