Browse Source

usbd: supress "statement is unreachable" warning on ARMCC

Yunhao Tian 4 years ago
parent
commit
dba59217da
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/device/usbd.c

+ 5 - 0
src/device/usbd.c

@@ -44,6 +44,11 @@
   #define CFG_TUD_TASK_QUEUE_SZ   16
   #define CFG_TUD_TASK_QUEUE_SZ   16
 #endif
 #endif
 
 
+#ifdef __ARMCC_VERSION
+// Supress "statement is unreachable" warning
+#pragma diag_suppress 111
+#endif
+
 //--------------------------------------------------------------------+
 //--------------------------------------------------------------------+
 // Device Data
 // Device Data
 //--------------------------------------------------------------------+
 //--------------------------------------------------------------------+