Skip to content

LAPACKE strict-prototypes compiler warning for LAPACKE_get_nancheck prototype #416

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

Closed
Reobos opened this issue May 18, 2020 · 1 comment · Fixed by #448
Closed

LAPACKE strict-prototypes compiler warning for LAPACKE_get_nancheck prototype #416

Reobos opened this issue May 18, 2020 · 1 comment · Fixed by #448
Milestone

Comments

@Reobos
Copy link

Reobos commented May 18, 2020

int LAPACKE_get_nancheck( );

If compiler warning -Werror=strict-prototypes is set, the following message appears:

include/lapacke.h:12578:1: error: function declaration isn’t a prototype [-Werror=strict-prototypes]

A simple fix:

int LAPACKE_get_nancheck(void);

This issue was originally raised in OpenBLAS: OpenMathLib/OpenBLAS#2619

@mu578
Copy link

mu578 commented May 19, 2020

yes strict prototypes should always be enforced; B.A.B.A as we say.

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 a pull request may close this issue.

3 participants