Skip to content

Commit 69307d5

Browse files
committed
Silence -Wunused-parameter warnings in Unwind-wasm.c
1 parent 642e84f commit 69307d5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

libunwind/src/Unwind-wasm.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,9 @@ _LIBUNWIND_EXPORT uintptr_t _Unwind_GetIP(struct _Unwind_Context *context) {
102102
}
103103

104104
/// Not used in Wasm.
105-
_LIBUNWIND_EXPORT void _Unwind_SetIP(struct _Unwind_Context *context,
106-
uintptr_t value) {}
105+
_LIBUNWIND_EXPORT void
106+
_Unwind_SetIP([[maybe_unused]] struct _Unwind_Context *context,
107+
[[maybe_unused]] uintptr_t value) {}
107108

108109
/// Called by personality handler to get LSDA for current frame.
109110
_LIBUNWIND_EXPORT uintptr_t
@@ -116,7 +117,7 @@ _Unwind_GetLanguageSpecificData(struct _Unwind_Context *context) {
116117

117118
/// Not used in Wasm.
118119
_LIBUNWIND_EXPORT uintptr_t
119-
_Unwind_GetRegionStart(struct _Unwind_Context *context) {
120+
_Unwind_GetRegionStart([[maybe_unused]] struct _Unwind_Context *context) {
120121
return 0;
121122
}
122123

0 commit comments

Comments
 (0)