================
@@ -720,6 +720,9 @@ static void scan_eh_tab(scan_results &results,
_Unwind_Action actions,
const uint8_t* lpStart = lpStartEncoding == DW_EH_PE_omit
? (const uint8_t*)funcStart
: (const uint8_t*)readEncodedPointer(&lsda,
lpStartEncoding, base);
+#if defined(__USING_SJLJ_EXCEPTIONS__) || defined(__WASM_EXCEPTIONS__)
+ (void)lpStart; // When using SjLj/Wasm exceptions, lpStart is never used
+#endif
----------------
philnik777 wrote:
Let's just slap a `[[maybe_unused]]` on `lpStart`.
https://github.com/llvm/llvm-project/pull/215384
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits