Skip to content

Add argument types to function prototypes#264

Merged
gmloose merged 1 commit intolofar-astron:masterfrom
olebole:gcc-15
Sep 15, 2025
Merged

Add argument types to function prototypes#264
gmloose merged 1 commit intolofar-astron:masterfrom
olebole:gcc-15

Conversation

@olebole
Copy link
Contributor

@olebole olebole commented Sep 12, 2025

In Debian, we recently switched our standard compiler to gcc-15, which defaults to standard version C23. This standard changes the behavior of an empty parameter list in function declarations from "unspecified" to void; so now function declarations need to specify the correct argument list.

This provokes a build failure for PyBDSF which was reported as Debian#1114276.
This Pull Request adds the argument list to the header in natgrid/Include/, which resolved this problem.

This enables the use of C23 standard compilers (like gcc-15).
Copy link
Collaborator

@gmloose gmloose left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@gmloose
Copy link
Collaborator

gmloose commented Sep 15, 2025

Thanks for updating the code to the latest C standard.

@gmloose gmloose merged commit 3d705ee into lofar-astron:master Sep 15, 2025
1 check passed
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