Skip to content

Commit 31ac683

Browse files
committed
Fix unused variable compile error
1 parent e9a39c1 commit 31ac683

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

system/lib/libcxxabi/src/cxa_personality.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,7 @@ static void scan_eh_tab(scan_results &results, _Unwind_Action actions,
663663
const uint8_t* lpStart = lpStartEncoding == DW_EH_PE_omit
664664
? (const uint8_t*)funcStart
665665
: (const uint8_t*)readEncodedPointer(&lsda, lpStartEncoding, base);
666+
(void)(lpStart); // Unused when using SjLj/Wasm exceptions
666667
uint8_t ttypeEncoding = *lsda++;
667668
if (ttypeEncoding != DW_EH_PE_omit)
668669
{
@@ -676,7 +677,7 @@ static void scan_eh_tab(scan_results &results, _Unwind_Action actions,
676677
// includes current PC.
677678
uint8_t callSiteEncoding = *lsda++;
678679
#if defined(__USING_SJLJ_EXCEPTIONS__) || defined(__USING_WASM_EXCEPTIONS__)
679-
(void)callSiteEncoding; // When using SjLj/Wasm exceptions, callSiteEncoding is never used
680+
(void)callSiteEncoding; // Unused when using SjLj/Wasm exceptions
680681
#endif
681682
uint32_t callSiteTableLength = static_cast<uint32_t>(readULEB128(&lsda));
682683
const uint8_t* callSiteTableStart = lsda;

0 commit comments

Comments
 (0)