summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYunhao Tian <[email protected]>2021-11-30 17:10:53 +0800
committerYunhao Tian <[email protected]>2021-11-30 17:19:10 +0800
commitdba59217da489dc497cbe2b573e7e144d085c869 (patch)
treec1ae5c03957823c607f8b904615760275a2a44c8 /src
parent9775e76910d569ec73b8dd946f3fa5fe5414acdb (diff)
usbd: supress "statement is unreachable" warning on ARMCC
Diffstat (limited to 'src')
-rw-r--r--src/device/usbd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index 6a5210b34..0e31f47c7 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
//--------------------------------------------------------------------+