diff options
author | Christos Margiolis <christos@FreeBSD.org> | 2025-01-22 12:09:54 +0000 |
---|---|---|
committer | Christos Margiolis <christos@FreeBSD.org> | 2025-01-22 12:12:59 +0000 |
commit | f6631da0b581b28c2bfeea1199b52013bb46aa41 (patch) | |
tree | 745d8d9f82e074bf274fb55b78a8d2410409352a | |
parent | 6ba2f08cea8cd5c801b78eb8842f7f96bf2d255c (diff) |
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: 27ef5d48c729 ("sound: Unit test the pcm sample read and write macros")
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
-rw-r--r-- | tests/sys/sound/pcm_read_write.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/sys/sound/pcm_read_write.c b/tests/sys/sound/pcm_read_write.c index 6bdc578615b5..e40ce52b67cc 100644 --- a/tests/sys/sound/pcm_read_write.c +++ b/tests/sys/sound/pcm_read_write.c @@ -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}, |