Skip to content

Fix compilation for gcc14#167

Open
drawbu wants to merge 1 commit intothorkill:masterfrom
drawbu:fix-build-gcc14
Open

Fix compilation for gcc14#167
drawbu wants to merge 1 commit intothorkill:masterfrom
drawbu:fix-build-gcc14

Conversation

@drawbu
Copy link
Copy Markdown

@drawbu drawbu commented Mar 22, 2025

Starting with gcc14, the flag -Wincompatible-pointer-types is set by default, and thus forbid to make the program build. To fix this issue, we need to add casts to incompatible pointers:

  • Added (void *) casts to functions passed as parameters with fewer arguments
  • Added explicit casts to other arguments

Starting with gcc14, the flag `-Wincompatible-pointer-types` is set by
default, and thus forbid to make the program build. To fix this issue,
we need to add casts to incompatible pointers:
- Added (void *) casts to functions passed as parameters with fewer
arguments
- Added explicit casts to other arguments
@thorkill
Copy link
Copy Markdown
Owner

thorkill commented Mar 30, 2025

Thanks for the PR.

Can you provide GCC version for reference? 14.2.0 doesn't compile on my system.
Edit: What ./configure flags have you used?

@drawbu
Copy link
Copy Markdown
Author

drawbu commented Mar 30, 2025

Hey !
I am indeed using GCC 14.2.0.
Configure Flags: --enable-32-64 --enable-readline

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

Successfully merging this pull request may close these issues.

2 participants