03-unused.patch 874 B

12345678910111213141516171819202122
  1. diff --git a/contrib/libs/libunwind/src/Unwind-wasm.c b/contrib/libs/libunwind/src/Unwind-wasm.c
  2. --- a/contrib/libs/libunwind/src/Unwind-wasm.c
  3. +++ b/contrib/libs/libunwind/src/Unwind-wasm.c
  4. @@ -102,8 +102,8 @@
  5. }
  6. /// Not used in Wasm.
  7. -_LIBUNWIND_EXPORT void _Unwind_SetIP(struct _Unwind_Context *context,
  8. - uintptr_t value) {}
  9. +_LIBUNWIND_EXPORT void _Unwind_SetIP(struct _Unwind_Context *context __attribute__((unused)),
  10. + uintptr_t value __attribute__((unused))) {}
  11. /// Called by personality handler to get LSDA for current frame.
  12. _LIBUNWIND_EXPORT uintptr_t
  13. @@ -116,7 +116,7 @@
  14. /// Not used in Wasm.
  15. _LIBUNWIND_EXPORT uintptr_t
  16. -_Unwind_GetRegionStart(struct _Unwind_Context *context) {
  17. +_Unwind_GetRegionStart(struct _Unwind_Context *context __attribute__((unused))) {
  18. return 0;
  19. }