Update LUFA core to be compatible with the AVR-GCC -Wswitch-default warning switch.
[pub/lufa.git] / LUFA / Drivers / USB / Core / XMEGA / USBInterrupt_XMEGA.h
index 6a07626..e917c8e 100644 (file)
                                {
                                        case USB_INT_BUSEVENTI:
                                                USB.INTCTRLA |= USB_BUSEVIE_bm;
-                                               return;
+                                               break;
                                        case USB_INT_SOFI:
                                                USB.INTCTRLA |= USB_SOFIE_bm;
-                                               return;
+                                               break;
+                                       default:
+                                               break;
                                }
                        }
 
                                {
                                        case USB_INT_BUSEVENTI:
                                                USB.INTCTRLA &= ~USB_BUSEVIE_bm;
-                                               return;
+                                               break;
                                        case USB_INT_SOFI:
                                                USB.INTCTRLA &= ~USB_SOFIE_bm;
-                                               return;
+                                               break;
+                                       default:
+                                               break;
                                }
                        }
 
                                {
                                        case USB_INT_BUSEVENTI_Suspend:
                                                USB.INTFLAGSACLR = USB_SUSPENDIF_bm;
-                                               return;
+                                               break;
                                        case USB_INT_BUSEVENTI_Resume:
                                                USB.INTFLAGSACLR = USB_RESUMEIF_bm;
-                                               return;
+                                               break;
                                        case USB_INT_BUSEVENTI_Reset:
                                                USB.INTFLAGSACLR = USB_RSTIF_bm;
-                                               return;
+                                               break;
                                        case USB_INT_SOFI:
                                                USB.INTFLAGSACLR = USB_SOFIF_bm;
-                                               return;
+                                               break;
+                                       default:
+                                               break;
                                }
                        }
 
                                                return ((USB.INTCTRLA & USB_BUSEVIE_bm) ? true : false);
                                        case USB_INT_SOFI:
                                                return ((USB.INTCTRLA & USB_SOFIE_bm) ? true : false);
+                                       default:
+                                               return false;
                                }
-
-                               return false;
                        }
 
                        static inline bool USB_INT_HasOccurred(const uint8_t Interrupt) ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT;
                                                return ((USB.INTFLAGSACLR & USB_RSTIF_bm) ? true : false);
                                        case USB_INT_SOFI:
                                                return ((USB.INTFLAGSACLR & USB_SOFIF_bm) ? true : false);
+                                       default:
+                                               return false;
                                }
-
-                               return false;
                        }
 
                /* Includes: */