From: Jonathan Dieter Date: Mon, 27 Feb 2017 08:31:04 +0000 (+0200) Subject: usbip: Fix implicit fallthrough warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cfd6ed4537a9e938fa76facecd4b9cd65b6d1563;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git usbip: Fix implicit fallthrough warning GCC 7 now warns when switch statements fall through implicitly, and with -Werror enabled in configure.ac, that makes these tools unbuildable. We fix this by notifying the compiler that this particular case statement is meant to fall through. Reviewed-by: Peter Senna Tschudin Signed-off-by: Jonathan Dieter Signed-off-by: Greg Kroah-Hartman --- diff --git a/tools/usb/usbip/src/usbip.c b/tools/usb/usbip/src/usbip.c index d7599d943529..73d8eee8130b 100644 --- a/tools/usb/usbip/src/usbip.c +++ b/tools/usb/usbip/src/usbip.c @@ -176,6 +176,8 @@ int main(int argc, char *argv[]) break; case '?': printf("usbip: invalid option\n"); + /* Terminate after printing error */ + /* FALLTHRU */ default: usbip_usage(); goto out;