From: kristina Date: Fri, 8 Apr 2022 16:04:35 +0000 (+0100) Subject: NFC: Avoid unused variable warning in UnwindLevel1.c X-Git-Tag: upstream/15.0.7~10992 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=575a1d48e781a03a1bb892ff52e16ee0485d0a34;p=platform%2Fupstream%2Fllvm.git NFC: Avoid unused variable warning in UnwindLevel1.c --- diff --git a/libunwind/src/UnwindLevel1.c b/libunwind/src/UnwindLevel1.c index 5c1f99d..d5e3cf3 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 { \