summaryrefslogtreecommitdiff
path: root/src/class
diff options
context:
space:
mode:
authorÁngel Molina Núñez <[email protected]>2023-12-10 17:04:46 +0100
committerGitHub <[email protected]>2023-12-10 17:04:46 +0100
commit506617d4b39ba9118a24477a4be6db9733e2e2f1 (patch)
treea3ddb2ac3ac07f725703f6a115e4ab825e06bd3f /src/class
parentac418f4d25400c12864b242f94215664dc5d9229 (diff)
Add comment to explain why the condition changes
Diffstat (limited to 'src/class')
-rw-r--r--src/class/audio/audio_device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/class/audio/audio_device.c b/src/class/audio/audio_device.c
index 731c39b54..d438d0715 100644
--- a/src/class/audio/audio_device.c
+++ b/src/class/audio/audio_device.c
@@ -1565,6 +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;
+ // Condition modified from p_desc < p_desc_end to prevent gcc>=12 strict-overflow warning
while (p_desc_end - p_desc > 0)
{
if (tu_desc_type(p_desc) == TUSB_DESC_ENDPOINT)