[libunwind] 575a1d4 - NFC: Avoid unused variable warning in UnwindLevel1.c
via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 8 09:11:52 PDT 2022
Author: kristina
Date: 2022-04-08T17:11:29+01:00
New Revision: 575a1d48e781a03a1bb892ff52e16ee0485d0a34
URL: https://github.com/llvm/llvm-project/commit/575a1d48e781a03a1bb892ff52e16ee0485d0a34
DIFF: https://github.com/llvm/llvm-project/commit/575a1d48e781a03a1bb892ff52e16ee0485d0a34.diff
LOG: NFC: Avoid unused variable warning in UnwindLevel1.c
Added:
Modified:
libunwind/src/UnwindLevel1.c
Removed:
################################################################################
diff --git a/libunwind/src/UnwindLevel1.c b/libunwind/src/UnwindLevel1.c
index 5c1f99d4bfa55..d5e3cf36b8a30 100644
--- a/libunwind/src/UnwindLevel1.c
+++ b/libunwind/src/UnwindLevel1.c
@@ -44,7 +44,11 @@
// directly jump to __libunwind_Registerts_x86/x86_64_jumpto instead of using
// a regular function call to avoid pushing to CET shadow stack again.
#if !defined(_LIBUNWIND_USE_CET)
-#define __unw_phase2_resume(cursor, fn) __unw_resume((cursor))
+#define __unw_phase2_resume(cursor, fn) \
+ do { \
+ (void)fn; \
+ __unw_resume((cursor)); \
+ } while (0)
#elif defined(_LIBUNWIND_TARGET_I386)
#define __unw_phase2_resume(cursor, fn) \
do { \
More information about the cfe-commits
mailing list