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

Fix extra reference of parameters of rrd_fetch_dbi_{long,double} #1255

Merged
merged 2 commits into from
Jul 29, 2024

Conversation

jamborm
Copy link
Contributor

@jamborm jamborm commented Jul 12, 2024

Functions rrd_fetch_dbi_long and rrd_fetch_dbi_double currently take the first parameter of type "bi_result result *" even though that is already a pointer and the use of that parameter suggests the extra indirection is not wanted. What is more, the caller passes just "bi_result result" to the corresponding actual arguments which results in compile errors with GCC 14 because it now does not accept incompatible pointer types by default.

Functions rrd_fetch_dbi_long and rrd_fetch_dbi_double currently take
the first parameter of type "bi_result result *" even though that is
already a pointer and the use of that parameter suggests the extra
indirection is not wanted.  What is more, the caller passes just
"bi_result result" to the corresponding actual arguments which results
in compile errors with GCC 14 because it now does not accept
incompatible pointer types by default.
@c72578
Copy link
Collaborator

c72578 commented Jul 14, 2024

@jamborm Could you please post the original GCC 14 warnings/errors here concerning rrd_fetch_dbi_double and rrd_fetch_dbi_long?

@jamborm
Copy link
Contributor Author

jamborm commented Jul 15, 2024

Sure:
rrdtool-errors.log

@oetiker oetiker merged commit ddc6021 into oetiker:master Jul 29, 2024
6 checks 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.

3 participants