From dba59217da489dc497cbe2b573e7e144d085c869 Mon Sep 17 00:00:00 2001 From: Yunhao Tian Date: Tue, 30 Nov 2021 17:10:53 +0800 Subject: [PATCH] usbd: supress "statement is unreachable" warning on ARMCC --- src/device/usbd.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/device/usbd.c b/src/device/usbd.c index 6a5210b3..0e31f47c 100644 --- a/src/device/usbd.c +++ b/src/device/usbd.c @@ -44,6 +44,11 @@ #define CFG_TUD_TASK_QUEUE_SZ 16 #endif +#ifdef __ARMCC_VERSION +// Supress "statement is unreachable" warning +#pragma diag_suppress 111 +#endif + //--------------------------------------------------------------------+ // Device Data //--------------------------------------------------------------------+