Skip to content

Commit f3f30cc

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libunwind/src/Unwind-wasm.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ _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 _Unwind_SetIP([[maybe_unused]] struct _Unwind_Context *context,
106+
[[maybe_unused]] uintptr_t value) {}
107107

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

117117
/// Not used in Wasm.
118118
_LIBUNWIND_EXPORT uintptr_t
119-
_Unwind_GetRegionStart(struct _Unwind_Context *context) {
119+
_Unwind_GetRegionStart([[maybe_unused]] struct _Unwind_Context *context) {
120120
return 0;
121121
}
122122

0 commit comments

Comments
 (0)