Author: Fangrui Song Date: 2021-01-06T20:39:07-08:00 New Revision: 25bf4a8f4285865c11566d04cca19562de5e622f
URL: https://github.com/llvm/llvm-project/commit/25bf4a8f4285865c11566d04cca19562de5e622f DIFF: https://github.com/llvm/llvm-project/commit/25bf4a8f4285865c11566d04cca19562de5e622f.diff LOG: [debuginfo-test] Fix -Wunused-value Added: Modified: debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.cpp Removed: ################################################################################ diff --git a/debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.cpp b/debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.cpp index 54c26dc14236..867962876916 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; _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits