[libunwind] Silence warnings about unused variables. NFC.
authorMartin Storsjö <martin@martin.st>
Wed, 4 May 2022 09:53:58 +0000 (12:53 +0300)
committerMartin Storsjö <martin@martin.st>
Wed, 4 May 2022 19:55:02 +0000 (22:55 +0300)
This variable was considered unused when NDEBUG was defined.

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

libunwind/src/AddressSpace.hpp

index 5fc9ee3..36c9f5a 100644 (file)
@@ -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;
   }