mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
sound tests: Fix gcc build
/workspace/src/tests/sys/sound/pcm_read_write.c:36:1: error: 'static' is not
at beginning of declaration [-Werror=old-style-declaration]
36 | } static const afmt_tests[] = {
| ^
Reported by: CI
Fixes: 27ef5d48c7 ("sound: Unit test the pcm sample read and write macros")
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
This commit is contained in:
parent
6ba2f08cea
commit
f6631da0b5
1 changed files with 2 additions and 2 deletions
|
|
@ -25,7 +25,7 @@
|
|||
#include <dev/sound/pcm/g711.h>
|
||||
|
||||
/* Generic test data, with buffer content matching the sample values. */
|
||||
struct afmt_test_data {
|
||||
static struct afmt_test_data {
|
||||
const char *label;
|
||||
uint8_t buffer[4];
|
||||
size_t size;
|
||||
|
|
@ -33,7 +33,7 @@ struct afmt_test_data {
|
|||
intpcm_t value;
|
||||
_Static_assert((sizeof(intpcm_t) == 4),
|
||||
"Test data assumes 32bit, adjust negative values to new size.");
|
||||
} static const afmt_tests[] = {
|
||||
} const afmt_tests[] = {
|
||||
/* 8 bit sample formats. */
|
||||
{"s8_1", {0x01, 0x00, 0x00, 0x00}, 1, AFMT_S8, 0x00000001},
|
||||
{"s8_2", {0x81, 0x00, 0x00, 0x00}, 1, AFMT_S8, 0xffffff81},
|
||||
|
|
|
|||
Loading…
Reference in a new issue