diff options
| author | Angel Molina <[email protected]> | 2023-12-09 23:13:53 +0100 |
|---|---|---|
| committer | Angel Molina <[email protected]> | 2023-12-09 23:13:53 +0100 |
| commit | ac418f4d25400c12864b242f94215664dc5d9229 (patch) | |
| tree | c2eb7fbc9bc964596429396bd1e9489b074da6b6 /src | |
| parent | 338ff2daba63fc60835934efc374c818f7c5980c (diff) | |
Fix strict-overflow warning when compiling with gcc >= 12
Diffstat (limited to 'src')
| -rw-r--r-- | src/class/audio/audio_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/audio/audio_device.c b/src/class/audio/audio_device.c index 9af999992..731c39b54 100644 --- a/src/class/audio/audio_device.c +++ b/src/class/audio/audio_device.c @@ -1565,7 +1565,7 @@ uint16_t audiod_open(uint8_t rhport, tusb_desc_interface_t const * itf_desc, uin { uint8_t const *p_desc = _audiod_fct[i].p_desc; uint8_t const *p_desc_end = p_desc + _audiod_fct[i].desc_length - TUD_AUDIO_DESC_IAD_LEN; - while (p_desc < p_desc_end) + while (p_desc_end - p_desc > 0) { if (tu_desc_type(p_desc) == TUSB_DESC_ENDPOINT) { |
