diff options
| author | Mooneer Salem <[email protected]> | 2023-07-13 01:07:32 -0700 |
|---|---|---|
| committer | Mooneer Salem <[email protected]> | 2023-07-13 01:54:30 -0700 |
| commit | 50736aa64ea6a500b9d634a28ce7708431648aaa (patch) | |
| tree | b1b1c507dde4561297e83146e05d31102d1ec5c3 /unittest | |
| parent | 141f3862d7269ed0c8c3cd47ceeb7b438b0b7b51 (diff) | |
Apply codec2 PR #405 to this tree instead.ms-warning-cleanup-2
Diffstat (limited to 'unittest')
| -rw-r--r-- | unittest/tfreedv_2400A_rawdata.c | 2 | ||||
| -rw-r--r-- | unittest/tfreedv_2400B_rawdata.c | 2 | ||||
| -rw-r--r-- | unittest/tquisk_filter.c | 3 |
3 files changed, 1 insertions, 6 deletions
diff --git a/unittest/tfreedv_2400A_rawdata.c b/unittest/tfreedv_2400A_rawdata.c index ed65501..8007793 100644 --- a/unittest/tfreedv_2400A_rawdata.c +++ b/unittest/tfreedv_2400A_rawdata.c @@ -74,7 +74,6 @@ int main(int argc, char **argv) printf("freedv_rawdatatx()/freedv_rawdatarx() "); int frames = 0; - int fails = 0; { short mod[nom_samples * 10]; /* Note: A codec frame is only 6.5 bytes! @@ -94,7 +93,6 @@ int main(int argc, char **argv) for (b = 0; b < 7; b++) { if (payload[b] != payload_rx[b]) { printf("Received codec bits 0x%02x do not match expected 0x%02x\n", payload_rx[b], payload[b]); - fails++; } } frames++; diff --git a/unittest/tfreedv_2400B_rawdata.c b/unittest/tfreedv_2400B_rawdata.c index 888ba83..0af4e8e 100644 --- a/unittest/tfreedv_2400B_rawdata.c +++ b/unittest/tfreedv_2400B_rawdata.c @@ -74,7 +74,6 @@ int main(int argc, char **argv) printf("freedv_rawdatatx()/freedv_rawdatarx() "); int frames = 0; - int fails = 0; { short mod[nom_samples * 10]; /* Note: A codec frame is only 6.5 bytes! @@ -94,7 +93,6 @@ int main(int argc, char **argv) for (b = 0; b < 7; b++) { if (payload[b] != payload_rx[b]) { printf("Received codec bits 0x%02x do not match expected 0x%02x\n", payload_rx[b], payload[b]); - fails++; } } frames++; diff --git a/unittest/tquisk_filter.c b/unittest/tquisk_filter.c index d6c7529..f31e6bd 100644 --- a/unittest/tquisk_filter.c +++ b/unittest/tquisk_filter.c @@ -25,7 +25,6 @@ int main() { complex float buf[N]; struct quisk_cfFilter *bpf; int i; - int n = 0; bpf = malloc(sizeof(struct quisk_cfFilter)); assert(bpf != NULL); @@ -39,7 +38,7 @@ int main() { /* we only output the real part in this test */ for(i=0; i<N; i++) buf_short[i] = creal(buf[i]); - n += fwrite(buf_short, sizeof(short), N, stdout); + fwrite(buf_short, sizeof(short), N, stdout); } quisk_filt_destroy(bpf); |
