[debuginfo-test] Fix -Wunused-value
authorFangrui Song <i@maskray.me>
Thu, 7 Jan 2021 04:39:07 +0000 (20:39 -0800)
committerFangrui Song <i@maskray.me>
Thu, 7 Jan 2021 04:39:07 +0000 (20:39 -0800)
debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.cpp

index 54c26dc..8679628 100644 (file)
@@ -59,8 +59,8 @@ int main() {
   // Reference symbols that might otherwise be stripped.
   ArrayRef[0];
   MutableArrayRef[0];
-  !ExpectedValue;
-  !ExpectedError;
+  (void)!ExpectedValue;
+  (void)!ExpectedError;
   *OptionalValue;
   *OptionalNone;
   return 0;