insane-adding-machines / unicore-mx

UniCore-MX | Universal Core for ARM Cortex-M0/0+/3/4/7/X
GNU General Public License v3.0
50 stars 8 forks source link

switch: statement may fall through #66

Open kuldeepdhaka opened 7 years ago

kuldeepdhaka commented 7 years ago

gcc warning:

../../usbd/usbd_ep0.c: In function 'standard_get_descriptor':
../../usbd/usbd_ep0.c:167:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
   if (index < dev->info->device.desc->bNumConfigurations) {
      ^
../../usbd/usbd_ep0.c:173:2: note: here
  case USB_DT_STRING:
  ^~~~

https://github.com/insane-adding-machines/unicore-mx/blob/master/lib/usbd/usbd_ep0.c#L394