From e54ddc32cf09dc43f7321431d8047ec6eabb5bbf Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Sat, 2 Nov 2024 11:41:12 +0100 Subject: [PATCH] xyz-modem: Add missing fallthrough annotation Falltroughs in switch statements should be explicit. Addresses-Coverity-ID: 131162 Missing break in switch Signed-off-by: Heinrich Schuchardt --- common/xyzModem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/xyzModem.c b/common/xyzModem.c index 09f74a1f0c..698a538a14 100644 --- a/common/xyzModem.c +++ b/common/xyzModem.c @@ -280,6 +280,7 @@ xyzModem_get_hdr (void) { case SOH: xyz.total_SOH++; + fallthrough; case STX: if (c == STX) xyz.total_STX++; -- 2.39.5