aboutsummaryrefslogtreecommitdiffstats
path: root/tools/usb/usbip/src
diff options
context:
space:
mode:
authorJonathan Dieter <jdieter@lesbg.com>2017-02-27 03:31:04 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-17 00:16:56 -0400
commitcfd6ed4537a9e938fa76facecd4b9cd65b6d1563 (patch)
treef85a7d09bfa4aa9ff7cb5532213edff95cb71533 /tools/usb/usbip/src
parente5dfa3f902b9a642ae8c6997d57d7c41e384a90b (diff)
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 <peter.senna@gmail.com> Signed-off-by: Jonathan Dieter <jdieter@lesbg.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/usb/usbip/src')
-rw-r--r--tools/usb/usbip/src/usbip.c2
1 files changed, 2 insertions, 0 deletions
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[])
176 break; 176 break;
177 case '?': 177 case '?':
178 printf("usbip: invalid option\n"); 178 printf("usbip: invalid option\n");
179 /* Terminate after printing error */
180 /* FALLTHRU */
179 default: 181 default:
180 usbip_usage(); 182 usbip_usage();
181 goto out; 183 goto out;