Skip to content

Fails to build with C23 #10

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

Open
pastalian opened this issue Mar 30, 2025 · 1 comment
Open

Fails to build with C23 #10

pastalian opened this issue Mar 30, 2025 · 1 comment

Comments

@pastalian
Copy link

There are many -Wincompatible-pointer-types errors when building with C23, which is the default in GCC 15.
https://gcc.gnu.org/gcc-15/porting_to.html#c23-fn-decls-without-parameters

build.log

newwin.c:241:36: error: passing argument 2 of 'W_SetWindowKeyDownHandler' from incompatible pointer type [-Wincompatible-pointer-types]
  241 |   W_SetWindowKeyDownHandler(warnw, handleMessageWindowKeyDown);
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                    |
      |                                    void (*)(W_Event *) {aka void (*)(struct event *)}
gentoo-bot pushed a commit to gentoo/guru that referenced this issue Mar 30, 2025
Incompatible function declarations under C23.
quozl/netrek-client-cow#10

Closes: https://bugs.gentoo.org/945213
Signed-off-by: Takuya Wakazono <[email protected]>
@quozl
Copy link
Owner

quozl commented Mar 31, 2025

Thanks! Looks like some rework is needed.

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

2 participants