zephyr/tests/subsys/usb
Tom Hughes 785e36520f tests: subsys: usb: bos: Remove dummy_descriptor struct
When building with clang, it warns:

tests/subsys/usb/bos/src/test_bos.c:24:22: error: variable
'dummy_descriptor' is not needed and will not be emitted
[-Werror,-Wunneeded-internal-declaration]
static const uint8_t dummy_descriptor[] = {
                     ^

Only the size of dummy_descriptor is used, not the contents. Replace the
struct with a constant for the size.

Signed-off-by: Tom Hughes <tomhughes@chromium.org>
2025-04-01 11:54:20 +02:00
..
bos tests: subsys: usb: bos: Remove dummy_descriptor struct 2025-04-01 11:54:20 +02:00
desc_sections
device
device_next usb: host: allow dynamic allocation of USB devices 2025-02-10 09:02:45 +01:00
os_desc tests/subsys/usb: Don't test on native_posix 2024-09-25 04:04:36 -04:00
uac2 tests: usb: uac2: Test Feature Unit descriptor 2024-10-15 19:03:49 +01:00