From patchwork Sat Jun 24 11:46:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Thomson X-Patchwork-Id: 9807773 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1F21C60349 for ; Sat, 24 Jun 2017 11:49:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 060F3286BF for ; Sat, 24 Jun 2017 11:49:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ED1582878B; Sat, 24 Jun 2017 11:49:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7604A286BF for ; Sat, 24 Jun 2017 11:49:56 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dOjWs-0003M3-1f; Sat, 24 Jun 2017 11:47:06 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dOjWq-0003Lw-QF for xen-devel@lists.xenproject.org; Sat, 24 Jun 2017 11:47:05 +0000 Received: from [193.109.254.147] by server-5.bemta-6.messagelabs.com id 22/8C-03371-8315E495; Sat, 24 Jun 2017 11:47:04 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrDLMWRWlGSWpSXmKPExsXilM8irWse6Bd p8HGrnMX3LZOZHBg9Dn+4whLAGMWamZeUX5HAmvG0bQ9LQRdHxeIvc1gaGLvZuhi5OIQEVjFK zNzxn6WLkRPIyZbo7bvNBmKzCOxnkTgxmQekiEXgKIvEunX/mEESEgKeEk1n21ggbGeJl4fvs 0BMOsMo8XzpJlaQBJuAiUT751Vgk0QElCTurZrMBGIzCxhJrFo3B2yQsICHxKH7v5ggtqlKbD v4jhHE5hVwkTj+5DTUAnmJae96WScw8i1gZFjFqFGcWlSWWqRrbKSXVJSZnlGSm5iZo2toYKa Xm1pcnJiempOYVKyXnJ+7iREYKgxAsIPx9LrAQ4ySHExKoryxZ3wihfiS8lMqMxKLM+KLSnNS iw8xynBwKEnwOgT4RQoJFqWmp1akZeYAgxYmLcHBoyTC6+8LlOYtLkjMLc5Mh0idYlSUEueVB +kTAElklObBtcEi5RKjrJQwLyPQIUI8BalFuZklqPKvGMU5GJWEeW+BTOHJzCuBm/4KaDET0O IZa3xAFpckIqSkGhj9FB6y32y6sIphq/KDz+e+TjbpTb7O8LypWXDTgdR7E+MenjOz3hpuszz oUaSmZM6D1evOejv0nZozLzzxXXjmAs6+p3OyyjUfd///xpj8x2z3hXqlku752f1XMxh1WpS3 2Od+vd7tNa1o3u4DKjOmpx0Ns2jW64wKuTJZNFroemnOywn7pKcrsRRnJBpqMRcVJwIAjwH51 I8CAAA= X-Env-Sender: git@johnthomson.fastmail.com.au X-Msg-Ref: server-2.tower-27.messagelabs.com!1498304822!49713139!1 X-Originating-IP: [66.111.4.27] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTExLjQuMjcgPT4gODQ2Mw==\n X-StarScan-Received: X-StarScan-Version: 9.4.19; banners=-,-,- X-VirusChecked: Checked Received: (qmail 43463 invoked from network); 24 Jun 2017 11:47:03 -0000 Received: from out3-smtp.messagingengine.com (HELO out3-smtp.messagingengine.com) (66.111.4.27) by server-2.tower-27.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 24 Jun 2017 11:47:03 -0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 7D32B2065C; Sat, 24 Jun 2017 07:47:02 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Sat, 24 Jun 2017 07:47:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com.au; h=cc:date:from:message-id:subject:to:x-me-sender:x-me-sender :x-sasl-enc:x-sasl-enc; s=fm1; bh=jizYSbO2k0xb2DWYMUrPOas8HQ57QX sFGC8fCuQZs4Q=; b=g+7QiD93Lnth80htMbBtXf0fKWGmQZorpSwlunQEftrhge KuL7/zWsi9qgUcQo430dSzfkKbkVbo5DafRarzumKrwJWsFGmHqWbxLxmG91jlv1 I6+jeAUxf7KgnCbQ2Kta8PicEvCVPlq4x/NV3jnopch+m30sxwgArSxIXkNYxXo9 u5Zp68aFePZH9XED4EbAwYPVvwH+KTdfugPFYJcHWHWPUrkgFW9t0RLSpdaTqyID +UPEGnCfml8P8Pb9yGZLqN/nar5r87YSvehADxnKrSFZBE2q8InW+1uqtFtHj6w7 TurZ85Ij+irBOxZZpgU+PDwOXYbn/YYEK5T3z4TQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:message-id:subject:to :x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=jizYSb O2k0xb2DWYMUrPOas8HQ57QXsFGC8fCuQZs4Q=; b=jASYzgcVqi+xxVYd1cJsie 6rpg/yH04k1+maA1LOGhzDim7jJDziH/GUNKTVftdFMkya3mef1KcU24YSF/doDX JgkKKH8QQA3/KPJn4X49res9ZnAZWmckboIbmhxSiAFbVYtkbsrLpK7Ly5EcKSSp BpKZZxWEjZ0l9obAeWhawoxHaAEESFYSP89plz/gWtFutkcrA7g6kVwJjdDDR3jm RtRN+fQHZurKA5kCCRmmpwrkPQzCFb1hf7P4ukWBQT8feGaJk+aZCJtu4gK1AoZi Avm3sZhQcExkIIU1V09k67NqcL6Gl/nHfb5Epf7suwJoM+DM9jWxsBTikQchAhOw == X-ME-Sender: X-Sasl-enc: k7EiDwQoqOxXaAmdm0Xdcx3cBHQfGX/UbHnKowQLx+Xc 1498304821 Received: from h4v1.thome.spur.red (cpe-123-211-161-248.lnse3.woo.bigpond.net.au [123.211.161.248]) by mail.messagingengine.com (Postfix) with ESMTPA id 3F80F245EF; Sat, 24 Jun 2017 07:47:01 -0400 (EDT) From: John Thomson To: xen-devel@lists.xenproject.org Date: Sat, 24 Jun 2017 21:46:12 +1000 Message-Id: <20170624114612.26842-1-git@johnthomson.fastmail.com.au> X-Mailer: git-send-email 2.13.1 Cc: John Thomson Subject: [Xen-devel] [XTF PATCH] Fix fallthrough typo in XTF common/libc/vsnprintf.c X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP fallthrough in one case is missing the r. This fails to suppress -Wimplicit-fallthrough warning with GCC7 common/libc/vsnprintf.c:388:19: error: this statement may fall through [-Werror=implicit-fallthrough=] flags |= SIGNED; ^ common/libc/vsnprintf.c:390:9: note: here case 'u': /* Unsigned decimal. */ ^~~~ cc1: all warnings being treated as errors Signed-off-by: John Thomson --- common/libc/vsnprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/libc/vsnprintf.c b/common/libc/vsnprintf.c index 1931433..4ec0119 100644 --- a/common/libc/vsnprintf.c +++ b/common/libc/vsnprintf.c @@ -386,7 +386,7 @@ int vsnprintf(char *buf, size_t size, const char *fmt, va_list args) case 'd': case 'i': /* Signed decimal. */ flags |= SIGNED; - /* fallthough */ + /* fallthrough */ case 'u': /* Unsigned decimal. */ base = 10; break;