Skip to content

Explicit casts to get around gcc14 warnings treated as errors. #69

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
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Xywzel
Copy link

@Xywzel Xywzel commented Jul 4, 2025

These are from with pip+wheels default parameters. This allows for pip install to work on machines where gcc14 is default gcc without having to change links or aliases. Keyword restrict has been supported since c99 so should be safe to use.

@jerematt
Copy link
Collaborator

jerematt commented Jul 8, 2025

Thanks for the PR. I had a look at the changed code and it seems like these variables should simply not be referenced since they are local arrays and already treated as pointers for strncpy.

I fixed this (and other GCC warnings) in PR #70 which I'll look to get merged and a release out soon.

PyPredict version with the fix will be 1.8.0

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