From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751812AbdB0Izm (ORCPT ); Mon, 27 Feb 2017 03:55:42 -0500 Received: from smtp.lesbg.com ([178.62.242.175]:42742 "EHLO smtp.lesbg.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751617AbdB0IzS (ORCPT ); Mon, 27 Feb 2017 03:55:18 -0500 From: Jonathan Dieter To: linux-kernel@vger.kernel.org Cc: Jonathan Dieter , Valentina Manea , Shuah Khan , Peter Senna Tschudin , linux-usb@vger.kernel.org (open list:USB OVER IP DRIVER) Subject: [PATCH v4 2/2] usbip: Fix implicit fallthrough warning Date: Mon, 27 Feb 2017 10:31:04 +0200 Message-Id: <20170227083108.16391-2-jdieter@lesbg.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170227083108.16391-1-jdieter@lesbg.com> References: <20170222181803.16373-1-jdieter@lesbg.com> <20170227083108.16391-1-jdieter@lesbg.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- tools/usb/usbip/src/usbip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/usb/usbip/src/usbip.c b/tools/usb/usbip/src/usbip.c index d7599d9..73d8eee 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; -- 2.9.3