Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCC: libgcc/unwind-c.c:46:1: error: ‘parse_lsda_header’ defined but not used #220

Open
Blackhex opened this issue Nov 4, 2024 · 0 comments

Comments

@Blackhex
Copy link
Member

Blackhex commented Nov 4, 2024

Recent GCC commit Windows-on-ARM-Experiments/gcc-woarm64@71c7b44 added -Werror when building libgcc and it fails on this error:

Issue

/root/mingw-woarm64-build/code/gcc/libgcc/unwind-c.c:46:1: error: ‘parse_lsda_header’ defined but not used [-Werror=unused-function]
   46 | parse_lsda_header (struct _Unwind_Context *context, const unsigned char *p,
      | ^~~~~~~~~~~~~~~~~

Workaround

The current workaround is to add -Wno-error=unused-function to libgcc/config/aarch64/t-aarch64.

@Blackhex Blackhex changed the title libgcc/unwind-c.c:46:1: error: ‘parse_lsda_header’ defined but not used GCC: libgcc/unwind-c.c:46:1: error: ‘parse_lsda_header’ defined but not used Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant