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:


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to