[libcxx-commits] [PATCH] D124911: [libunwind] Silence warnings about unused variables. NFC.

Martin Storsjö via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed May 4 02:59:52 PDT 2022


mstorsjo created this revision.
mstorsjo added a reviewer: MaskRay.
Herald added a subscriber: StephenFan.
Herald added projects: libunwind, All.
Herald added a reviewer: libunwind.
mstorsjo requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This variable was considered unused if building with log messages
disabled, when building for Windows with Dwarf exception handling
(i.e. for i386).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D124911

Files:
  libunwind/src/AddressSpace.hpp


Index: libunwind/src/AddressSpace.hpp
===================================================================
--- libunwind/src/AddressSpace.hpp
+++ libunwind/src/AddressSpace.hpp
@@ -551,6 +551,7 @@
     DWORD err = GetLastError();
     _LIBUNWIND_TRACE_UNWINDING("findUnwindSections: EnumProcessModules failed, "
                                "returned error %d", (int)err);
+    (void)err;
     return false;
   }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124911.426956.patch
Type: text/x-patch
Size: 417 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220504/93d4b27f/attachment.bin>


More information about the libcxx-commits mailing list