[llvm-branch-commits] [debuginfo-tests] 25bf4a8 - [debuginfo-test] Fix -Wunused-value

Fangrui Song via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Jan 6 20:43:57 PST 2021


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;


        


More information about the llvm-branch-commits mailing list