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

Fails to build from source with GCC 15 due to mismatched function declarations #1731

Open
glaubitz opened this issue Feb 10, 2025 · 0 comments

Comments

@glaubitz
Copy link

Starting with GCC 15, function declarations must exactly match the definitions now.

As a result, tokenizers fails to build with GCC 15 since the parameter list for some function declarations do not match the definitions:

[   37s]   The following warnings were emitted during compilation:
[   37s] 
[   37s]   warning: [email protected]: oniguruma/src/regparse.c: In function 'onig_st_init_strend_table_with_size':
[   37s]   warning: [email protected]: oniguruma/src/regparse.c:588:5: error: initialization of 'int (*)(void)' from incompatible pointer type 'int (*)(st_str_end_key *, st_str_end_key *)' [-Wincompatible-pointer-types]
[   37s]   warning: [email protected]:   588 |     str_end_cmp,
[   37s]   warning: [email protected]:       |     ^~~~~~~~~~~
[   37s]   warning: [email protected]: oniguruma/src/regparse.c:588:5: note: (near initialization for 'hashType.compare')
[   37s]   warning: [email protected]: oniguruma/src/regparse.c:550:1: note: 'str_end_cmp' declared here
[   37s]   warning: [email protected]:   550 | str_end_cmp(st_str_end_key* x, st_str_end_key* y)
[   37s]   warning: [email protected]:       | ^~~~~~~~~~~
[   37s]   warning: [email protected]: oniguruma/src/regparse.c:589:5: error: initialization of 'int (*)(void)' from incompatible pointer type 'int (*)(st_str_end_key *)' [-Wincompatible-pointer-types]
[   37s]   warning: [email protected]:   589 |     str_end_hash,
[   37s]   warning: [email protected]:       |     ^~~~~~~~~~~~
[   37s]   warning: [email protected]: oniguruma/src/regparse.c:589:5: note: (near initialization for 'hashType.hash')
[   37s]   warning: [email protected]: oniguruma/src/regparse.c:571:1: note: 'str_end_hash' declared here
[   37s]   warning: [email protected]:   571 | str_end_hash(st_str_end_key* x)
[   37s]   warning: [email protected]:       | ^~~~~~~~~~~~
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