Skip to content

Cast all return values from called functions to appropriate values.#313

Open
mcepl wants to merge 1 commit intobelangeo:masterfrom
openSUSE-Python:gcc15-build
Open

Cast all return values from called functions to appropriate values.#313
mcepl wants to merge 1 commit intobelangeo:masterfrom
openSUSE-Python:gcc15-build

Conversation

@mcepl
Copy link
Copy Markdown

@mcepl mcepl commented Sep 17, 2025

With GCC 15, function declarations with no parameters can no longer be used for functions that take parameters.

References: https://gcc.gnu.org/gcc-15/porting_to.html#c23-fn-decls-without-parameters
Fixes: #311
Fixes: #288

With GCC 15, function declarations with no parameters can no
longer be used for functions that take parameters.

References: https://gcc.gnu.org/gcc-15/porting_to.html#c23-fn-decls-without-parameters
Fixes: belangeo#311
Fixes: belangeo#288
@stripwax
Copy link
Copy Markdown

stripwax commented Feb 5, 2026

This looks like the correct fix to the "cannot install pyo on up-to-date linux system" bug reports (due to latest gcc version). But this PR seems to have stalled - is there some discussion on this / is it already pulled into an alternative branch that we can instruct pip to install from? Or should users be directed to build from source directly from the openSUSE-Python:gcc15-build branch instead?

I can confirm that the following built and worked for me:
pip install git+https://github.com/openSUSE-Python/pyo@gcc15-build
(or just pip install git+https://github.com/openSUSE-Python/pyo@794be7f3 )

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.

compilation with modern gcc Fails to build with GCC 15 due to -Wincompatible-pointer-types

2 participants