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 compile error with gcc14 #984

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MartinHerren
Copy link
Contributor

This fixes a compile error with gcc14:
.../host/utilities/bladeRF-fsk/c/src/fir_filter.c:227:28: error: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
227 | outbuf = calloc(sizeof(struct complex_sample), chunk_size);

because the arguments of some callocs are inverted..

This fixes !972

This fixes a compile error with gcc14:
.../host/utilities/bladeRF-fsk/c/src/fir_filter.c:227:28: error: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
  227 |     outbuf = calloc(sizeof(struct complex_sample), chunk_size);

because the arguments of some callocs are inverted.

Signed-off-by: Martin Herren (HB9FXX) <cq@hb9fxx.ch>
@CLAassistant
Copy link

CLAassistant commented Sep 9, 2024

CLA assistant check
All committers have signed the CLA.

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.

Fix Argument Order in calloc Call in fir_filter.c
2 participants