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:122:27: error: unused parameter ‘version’ #218

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

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: In function ‘__gcc_personality_imp’:
/root/mingw-woarm64-build/code/gcc/libgcc/unwind-c.c:122:27: error: unused parameter ‘version’ [-Werror=unused-parameter]
  122 | PERSONALITY_FUNCTION (int version,
      |                       ~~~~^~~~~~~
/root/mingw-woarm64-build/code/gcc/libgcc/unwind-c.c:123:38: error: unused parameter ‘actions’ [-Werror=unused-parameter]
  123 |                       _Unwind_Action actions,
      |                       ~~~~~~~~~~~~~~~^~~~~~~
/root/mingw-woarm64-build/code/gcc/libgcc/unwind-c.c:125:49: error: unused parameter ‘ue_header’ [-Werror=unused-parameter]
  125 |                       struct _Unwind_Exception *ue_header,
      |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/root/mingw-woarm64-build/code/gcc/libgcc/unwind-c.c:126:47: error: unused parameter ‘context’ [-Werror=unused-parameter]
  126 |                       struct _Unwind_Context *context)
      |                       ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/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-parameter to libgcc/config/aarch64/t-aarch64.

@Blackhex Blackhex changed the title libgcc/unwind-c.c:122:27: error: unused parameter ‘version’ GCC: libgcc/unwind-c.c:122:27: error: unused parameter ‘version’ 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