mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
usbip: Fix implicit fallthrough warning
commit cfd6ed4537 upstream.
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: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
28f467e0bd
commit
4493f49816
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user