[debuginfo-test] Fix -Wunused-value

GitOrigin-RevId: 25bf4a8f4285865c11566d04cca19562de5e622f
diff --git a/llvm-prettyprinters/gdb/llvm-support.cpp b/llvm-prettyprinters/gdb/llvm-support.cpp
index 54c26dc..8679628 100644
--- a/llvm-prettyprinters/gdb/llvm-support.cpp
+++ b/llvm-prettyprinters/gdb/llvm-support.cpp
@@ -59,8 +59,8 @@
   // Reference symbols that might otherwise be stripped.
   ArrayRef[0];
   MutableArrayRef[0];
-  !ExpectedValue;
-  !ExpectedError;
+  (void)!ExpectedValue;
+  (void)!ExpectedError;
   *OptionalValue;
   *OptionalNone;
   return 0;