Skip to content
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

jl_ver_* returning const int angers clang #9511

Closed
waTeim opened this issue Dec 31, 2014 · 0 comments · Fixed by #9512
Closed

jl_ver_* returning const int angers clang #9511

waTeim opened this issue Dec 31, 2014 · 0 comments · Fixed by #9512

Comments

@waTeim
Copy link
Contributor

waTeim commented Dec 31, 2014

The new functions

DLLEXPORT extern const int jl_ver_major(void);
DLLEXPORT extern const int jl_ver_minor(void);
DLLEXPORT extern const int jl_ver_patch(void);
DLLEXPORT extern const int jl_ver_is_release(void);

Causes clang (OS/X) to emit the following warning

warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers]

Yea, I think not needed for int.

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.

1 participant