NFC: Avoid unused variable warning in UnwindLevel1.c
authorkristina <notstina@gmail.com>
Fri, 8 Apr 2022 16:04:35 +0000 (17:04 +0100)
committerkristina <notstina@gmail.com>
Fri, 8 Apr 2022 16:11:29 +0000 (17:11 +0100)
libunwind/src/UnwindLevel1.c

index 5c1f99d..d5e3cf3 100644 (file)
 // 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 {                                                                         \