-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix build for gcc-14 > 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 227 | outbuf = calloc(sizeof(struct complex_sample), chunk_size); https://cache.nixos.org/log/hsg1v3cl1hk9ca77rgkng6n6dabz1bi3-libbladeRF-2.5.0.drv
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/host/utilities/bladeRF-fsk/c/src/fir_filter.c b/host/utilities/bladeRF-fsk/c/src/fir_filter.c | ||
index 59f34f0..7def697 100644 | ||
--- a/host/utilities/bladeRF-fsk/c/src/fir_filter.c | ||
+++ b/host/utilities/bladeRF-fsk/c/src/fir_filter.c | ||
@@ -213,18 +213,18 @@ int main(int argc, char *argv[]) | ||
return EXIT_FAILURE; | ||
} | ||
|
||
- inbuf = calloc(2*sizeof(int16_t), chunk_size); | ||
+ inbuf = calloc(chunk_size, 2*sizeof(int16_t)); | ||
if (!inbuf) { | ||
perror("calloc"); | ||
goto out; | ||
} | ||
- tempbuf = calloc(2*sizeof(int16_t), chunk_size); | ||
+ tempbuf = calloc(chunk_size, 2*sizeof(int16_t)); | ||
if (!tempbuf) { | ||
perror("calloc"); | ||
goto out; | ||
} | ||
|
||
- outbuf = calloc(sizeof(struct complex_sample), chunk_size); | ||
+ outbuf = calloc(chunk_size, sizeof(struct complex_sample)); | ||
if (!outbuf) { | ||
perror("calloc"); | ||
goto out; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters