From patchwork Sun May 1 09:28:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=C3=B6rg_Krause?= X-Patchwork-Id: 617156 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 3qyMYb3m9wz9t48 for ; Sun, 1 May 2016 19:28:18 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=embedded.rocks header.i=@embedded.rocks header.b=NRR2wh/d; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id F30F68F97C; Sun, 1 May 2016 09:28:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mzn2cU9LCaXY; Sun, 1 May 2016 09:28:17 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id CFACE8F9C8; Sun, 1 May 2016 09:28:16 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id B7D581C0D28 for ; Sun, 1 May 2016 09:28:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id AEC6E2EC9D for ; Sun, 1 May 2016 09:28:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Xwx40eljkdqm for ; Sun, 1 May 2016 09:28:14 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) by silver.osuosl.org (Postfix) with ESMTPS id 1AC1627280 for ; Sun, 1 May 2016 09:28:14 +0000 (UTC) Received: from dovecot03.posteo.de (dovecot03.posteo.de [172.16.0.13]) by mout01.posteo.de (Postfix) with ESMTPS id C1CEA2094E for ; Sun, 1 May 2016 11:28:10 +0200 (CEST) Received: from mail.posteo.de (localhost [127.0.0.1]) by dovecot03.posteo.de (Postfix) with ESMTPSA id 3qyMYQ4QnBz5vND for ; Sun, 1 May 2016 11:28:10 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.embedded.rocks (Postfix) with ESMTP id 17517EE0C6B; Sun, 1 May 2016 11:28:10 +0200 (CEST) Authentication-Results: mail.embedded.rocks (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=embedded.rocks DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embedded.rocks; h=content-transfer-encoding:content-type:content-type :mime-version:x-mailer:message-id:date:date:subject:subject:from :from:received:received; s=default; t=1462094888; x=1462699689; bh=fwPhVka+Ew8dvRgl6avBp0vLuS0FvnKN3UchEIRdyH4=; b=NRR2wh/d1bzT A6ICU3LWs9lLAQBS66Ji2mkIYP66y8GFhO6wUUA9C+2RuAtvGWGo/ahmQEfsdnn3 vg4xSeeRXtZdfBKowIMe1uBqyeMUan/9UdJhRbSdDycBJTk3FWPXJmYCqa/mYFaQ a++aclhM4WnfK0/dDZSgQKjm0LuKo7+NTmTrjYPr3nzl51JUp9I92guhLB4WZVsC mEY/kVvMLq4yvcL0EStX9dIDsGVfhvMQmp1Ft1IgvQPsOnBqT+WybWfSnbq9t0z8 GnoLq/MvrVLhlOuQ10eE92iyL1OOIWEYZxT0ZbcsEiVMB8RP8ZMIzlIW3uv50fT0 jaerDXXZqw== X-Virus-Scanned: Debian amavisd-new at mail.embedded.rocks Received: from mail.embedded.rocks ([127.0.0.1]) by localhost (mail.embedded.rocks [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id zqZ5Nx68oJBk; Sun, 1 May 2016 11:28:08 +0200 (CEST) Received: from nzxt.fritz.box (x2f74bf0.dyn.telefonica.de [2.247.75.240]) (Authenticated sender: joerg.krause@embedded.rocks) by mail.embedded.rocks (Postfix) with ESMTPSA; Sun, 1 May 2016 11:28:08 +0200 (CEST) From: =?UTF-8?q?J=C3=B6rg=20Krause?= To: buildroot@buildroot.org Date: Sun, 1 May 2016 11:28:03 +0200 Message-Id: <1462094883-8397-1-git-send-email-joerg.krause@embedded.rocks> X-Mailer: git-send-email 2.8.2 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] crda: fix build with GCC 6 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: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Building crda with GCC 6 fails because of all compiler warnings are treated as errors. Disable the compiler option '-Werror': keys-gcrypt.c:94:32: error: ‘keys’ defined but not used [-Werror=unused-const-variable=] static const struct key_params keys[] = { ^~~~ cc1: all warnings being treated as errors Add a patch to drop '-Werror' from CFLAGS. Signed-off-by: Jörg Krause --- package/crda/0003-drop-werror.patch | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 package/crda/0003-drop-werror.patch diff --git a/package/crda/0003-drop-werror.patch b/package/crda/0003-drop-werror.patch new file mode 100644 index 0000000..072e3fc --- /dev/null +++ b/package/crda/0003-drop-werror.patch @@ -0,0 +1,37 @@ +From f38253e066dee96b148be1b79a6b4a696ee0ae0b Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?J=C3=B6rg=20Krause?= +Date: Sun, 1 May 2016 10:05:48 +0200 +Subject: [PATCH] drop werror +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Building crda with GCC 6 fails because of all compiler warnings are treated as +errors. Disable the compiler option '-Werror': + +keys-gcrypt.c:94:32: error: ‘keys’ defined but not used [-Werror=unused-const-variable=] + static const struct key_params keys[] = { + ^~~~ +cc1: all warnings being treated as errors + +Signed-off-by: Jörg Krause +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 74f1172..e9b417f 100644 +--- a/Makefile ++++ b/Makefile +@@ -26,7 +26,7 @@ PUBKEY_DIR?=pubkeys + RUNTIME_PUBKEY_DIR?=/etc/wireless-regdb/pubkeys + + CFLAGS += -O2 -fpic +-CFLAGS += -std=gnu99 -Wall -Werror -pedantic ++CFLAGS += -std=gnu99 -Wall -pedantic + CFLAGS += -Wall -g + LDLIBREG += -lreg + LDLIBS += $(LDLIBREG) +-- +2.8.2 +