[libunwind] 6123e9c - [libunwind] Silence warnings about unused variables. NFC.

Martin Storsjö via cfe-commits cfe-commits at lists.llvm.org
Wed May 4 12:55:15 PDT 2022


Author: Martin Storsjö
Date: 2022-05-04T22:55:02+03:00
New Revision: 6123e9c0d03bf1e3f43c3851f4122a7267b33c28

URL: https://github.com/llvm/llvm-project/commit/6123e9c0d03bf1e3f43c3851f4122a7267b33c28
DIFF: https://github.com/llvm/llvm-project/commit/6123e9c0d03bf1e3f43c3851f4122a7267b33c28.diff

LOG: [libunwind] Silence warnings about unused variables. NFC.

This variable was considered unused when NDEBUG was defined.

Differential Revision: https://reviews.llvm.org/D124911

Added: 
    

Modified: 
    libunwind/src/AddressSpace.hpp

Removed: 
    


################################################################################
diff  --git a/libunwind/src/AddressSpace.hpp b/libunwind/src/AddressSpace.hpp
index 5fc9ee3fe6c38..36c9f5a9e36f9 100644
--- a/libunwind/src/AddressSpace.hpp
+++ b/libunwind/src/AddressSpace.hpp
@@ -551,6 +551,7 @@ inline bool LocalAddressSpace::findUnwindSections(pint_t targetAddr,
     DWORD err = GetLastError();
     _LIBUNWIND_TRACE_UNWINDING("findUnwindSections: EnumProcessModules failed, "
                                "returned error %d", (int)err);
+    (void)err;
     return false;
   }
 


        


More information about the cfe-commits mailing list