From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751289AbdBTU7m (ORCPT ); Mon, 20 Feb 2017 15:59:42 -0500 Received: from smtp.lesbg.com ([178.62.242.175]:35870 "EHLO smtp.lesbg.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751219AbdBTU7g (ORCPT ); Mon, 20 Feb 2017 15:59:36 -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 2/2] Fix implicit fallthrough warning Date: Mon, 20 Feb 2017 22:51:24 +0200 Message-Id: <20170220205129.18194-2-jdieter@lesbg.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170220205129.18194-1-jdieter@lesbg.com> References: <20170220205129.18194-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