From 25bf4a8f4285865c11566d04cca19562de5e622f Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 6 Jan 2021 20:39:07 -0800 Subject: [PATCH] [debuginfo-test] Fix -Wunused-value --- debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.cpp b/debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.cpp index 54c26dc..8679628 100644 --- a/debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.cpp +++ b/debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.cpp @@ -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; -- 2.7.4