From patchwork Tue Sep 26 13:37:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Niestroj X-Patchwork-Id: 818646 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3y1hpP4cCNz9tXK for ; Tue, 26 Sep 2017 23:37:32 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id B24BB882ED; Tue, 26 Sep 2017 13:37:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rTdYGQLtGDF6; Tue, 26 Sep 2017 13:37:27 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 49AD3882D0; Tue, 26 Sep 2017 13:37:27 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 2FC4E1C025C for ; Tue, 26 Sep 2017 13:37:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 2065D88E6E for ; Tue, 26 Sep 2017 13:37:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HyzrE4jrxj2J for ; Tue, 26 Sep 2017 13:37:24 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp.megiteam.pl (smtp.megiteam.pl [31.186.83.105]) by hemlock.osuosl.org (Postfix) with ESMTPS id 352EE88E67 for ; Tue, 26 Sep 2017 13:37:24 +0000 (UTC) Received: from [95.143.241.142] (helo=localhost.localdomain) by smtp.megiteam.pl with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dwq36-0004g5-V9; Tue, 26 Sep 2017 15:37:21 +0200 From: Marcin Niestroj To: buildroot@buildroot.org Date: Tue, 26 Sep 2017 15:37:16 +0200 Message-Id: <20170926133716.8472-1-m.niestroj@grinn-global.com> X-Mailer: git-send-email 2.14.1 Cc: Marcin Niestroj Subject: [Buildroot] [PATCH v2] package/turbolua: Fix build with gcc7 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" gcc7 has -Wimplicit-fallthrough enabled by default. Together with -Werror in turbolua makefile it gives -Werror=implicit-fallthrough= build error. Add upstreamable patch [1], which fixes typo in FALLTHROUGH comment, so it makes the fallthrough explicit for gcc. [1] https://github.com/kernelsauce/turbo/pull/323 Fixes: http://autobuild.buildroot.net/results/6f107b62f105508044185576b071323e5d73dd83 http://autobuild.buildroot.net/results/d303929960c667a21181d0bbdab64ba8a8d56a4f Signed-off-by: Marcin Niestroj --- Changes v1 -> v2 (suggested by Baruch): * Added Signed-off-by in patch * Added link to upstream pull request in patch ...er-Fix-typo-in-switch-FALLTHROUGH-comment.patch | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 package/turbolua/0001-http-parser-Fix-typo-in-switch-FALLTHROUGH-comment.patch diff --git a/package/turbolua/0001-http-parser-Fix-typo-in-switch-FALLTHROUGH-comment.patch b/package/turbolua/0001-http-parser-Fix-typo-in-switch-FALLTHROUGH-comment.patch new file mode 100644 index 0000000000..bb27056ac6 --- /dev/null +++ b/package/turbolua/0001-http-parser-Fix-typo-in-switch-FALLTHROUGH-comment.patch @@ -0,0 +1,31 @@ +From 570db52d7fd3b4deffe785e60fb362e1496844ee Mon Sep 17 00:00:00 2001 +From: Marcin Niestroj +Date: Tue, 26 Sep 2017 12:10:53 +0200 +Subject: [PATCH] http-parser: Fix typo in switch FALLTHROUGH comment + +This also suppresses -Wimplicit-fallthrough warning, which is enabled +in gcc7 by default. + +PR for upstream: https://github.com/kernelsauce/turbo/pull/323 + +Signed-off-by: Marcin Niestroj +--- + deps/http-parser/http_parser.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/deps/http-parser/http_parser.c b/deps/http-parser/http_parser.c +index 8cf6fb0..2ff1073 100644 +--- a/deps/http-parser/http_parser.c ++++ b/deps/http-parser/http_parser.c +@@ -2095,7 +2095,7 @@ http_parser_parse_url( + case s_req_server_with_at: + found_at = 1; + +- /* FALLTROUGH */ ++ /* FALLTHROUGH */ + case s_req_server: + uf = UF_HOST; + break; +-- +2.14.1 +