Skip to content
Commit 785e3652 authored by Tom Hughes's avatar Tom Hughes Committed by Benjamin Cabé
Browse files

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: default avatarTom Hughes <tomhughes@chromium.org>
parent dd6adc7c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment