summaryrefslogtreecommitdiff
path: root/src/host
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-07-14 18:39:47 +0700
committerhathach <[email protected]>2022-07-14 18:39:47 +0700
commit7e4c0f64cd32ee0c73da37703dda2f83ed760132 (patch)
tree3ed2212ab6057783b3d60672f6d1ff688dc62064 /src/host
parent4bd47bcb99eef7a71ba2d45842af43e6269c30d4 (diff)
abtract attribute fallthrough
Diffstat (limited to 'src/host')
-rw-r--r--src/host/usbh.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/host/usbh.c b/src/host/usbh.c
index 26351d16a..9d618db92 100644
--- a/src/host/usbh.c
+++ b/src/host/usbh.c
@@ -655,9 +655,7 @@ static bool usbh_control_xfer_cb (uint8_t dev_addr, uint8_t ep_addr, xfer_result
TU_ASSERT( hcd_edpt_xfer(rhport, dev_addr, tu_edpt_addr(0, request->bmRequestType_bit.direction), _ctrl_xfer.buffer, request->wLength) );
return true;
}
-#if __GNUC__ >= 7
- __attribute__((fallthrough));
-#endif
+ TU_ATTR_FALLTHROUGH;
case CONTROL_STAGE_DATA:
if (request->wLength)