Skip to content
Snippets Groups Projects
Commit cfd6ed45 authored by Jonathan Dieter's avatar Jonathan Dieter Committed by Greg Kroah-Hartman
Browse files

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: default avatarPeter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: default avatarJonathan Dieter <jdieter@lesbg.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e5dfa3f9
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment