From: Fangrui Song Date: Thu, 7 Jan 2021 04:39:07 +0000 (-0800) Subject: [debuginfo-test] Fix -Wunused-value X-Git-Tag: llvmorg-13-init~1892 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=25bf4a8f4285865c11566d04cca19562de5e622f;p=platform%2Fupstream%2Fllvm.git [debuginfo-test] Fix -Wunused-value --- 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;