[libunwind] Silence -Wunused-parameter warnings in Unwind-wasm.c (PR #125412)

Louis Dionne via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 5 11:23:01 PST 2025


================
@@ -102,8 +102,9 @@ _LIBUNWIND_EXPORT uintptr_t _Unwind_GetIP(struct _Unwind_Context *context) {
 }
 
 /// Not used in Wasm.
-_LIBUNWIND_EXPORT void _Unwind_SetIP(struct _Unwind_Context *context,
-                                     uintptr_t value) {}
+_LIBUNWIND_EXPORT void
+_Unwind_SetIP([[maybe_unused]] struct _Unwind_Context *context,
+              [[maybe_unused]] uintptr_t value) {}
----------------
ldionne wrote:

```suggestion
_Unwind_SetIP(struct _Unwind_Context *, uintptr_t) {}
```

https://github.com/llvm/llvm-project/pull/125412


More information about the cfe-commits mailing list