| commit | 785e36520fd3be5d8d9a2dd0fb569b889552b5b1 | [log] [tgz] |
|---|---|---|
| author | Tom Hughes <tomhughes@chromium.org> | Fri Jan 10 15:19:02 2025 -0800 |
| committer | Benjamin Cabé <kartben@gmail.com> | Tue Apr 01 11:54:20 2025 +0200 |
| tree | e493922eb0ce7da7055d415e203be9bd9e72a29f | |
| parent | dd6adc7cad9c2c1105f9d6088913b1719bfa9d9b [diff] |
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>