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

via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 2 05:39:39 PST 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 642e84f0012b6e3a0e4f187bad5ee1775c3d623a f3f30cca500f839a2e6647ea9acf0cea45a4e178 --extensions c -- libunwind/src/Unwind-wasm.c
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libunwind/src/Unwind-wasm.c b/libunwind/src/Unwind-wasm.c
index fe016b8f59..4b893c8b4f 100644
--- a/libunwind/src/Unwind-wasm.c
+++ b/libunwind/src/Unwind-wasm.c
@@ -102,8 +102,9 @@ _LIBUNWIND_EXPORT uintptr_t _Unwind_GetIP(struct _Unwind_Context *context) {
 }
 
 /// Not used in Wasm.
-_LIBUNWIND_EXPORT void _Unwind_SetIP([[maybe_unused]] struct _Unwind_Context *context,
-                                     [[maybe_unused]] uintptr_t value) {}
+_LIBUNWIND_EXPORT void
+_Unwind_SetIP([[maybe_unused]] struct _Unwind_Context *context,
+              [[maybe_unused]] uintptr_t value) {}
 
 /// Called by personality handler to get LSDA for current frame.
 _LIBUNWIND_EXPORT uintptr_t

``````````

</details>


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


More information about the cfe-commits mailing list