From patchwork Wed Mar 4 19:51:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 5939861 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C958DBF440 for ; Wed, 4 Mar 2015 19:52:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 097B5202F8 for ; Wed, 4 Mar 2015 19:52:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 24B4F20254 for ; Wed, 4 Mar 2015 19:52:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759015AbbCDTwB (ORCPT ); Wed, 4 Mar 2015 14:52:01 -0500 Received: from smtp.gentoo.org ([140.211.166.183]:39533 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757921AbbCDTv7 (ORCPT ); Wed, 4 Mar 2015 14:51:59 -0500 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id E8F8D340784 for ; Wed, 4 Mar 2015 19:51:58 +0000 (UTC) From: Mike Frysinger To: linux-wireless@vger.kernel.org Subject: [PATCH crda 2/4] allow people to turn off -Werror Date: Wed, 4 Mar 2015 14:51:52 -0500 Message-Id: <1425498714-8654-2-git-send-email-vapier@gentoo.org> X-Mailer: git-send-email 2.3.1 In-Reply-To: <1425498714-8654-1-git-send-email-vapier@gentoo.org> References: <1425498714-8654-1-git-send-email-vapier@gentoo.org> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Mike Frysinger Forcing -Werror at build time easily breaks across compiler settings, compiler versions, architectures, C libraries, etc... Add a knob so distro peeps can turn it off. Signed-off-by: Mike Frysinger --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 46c683d..5f988f4 100644 --- a/Makefile +++ b/Makefile @@ -25,8 +25,9 @@ UDEV_RULE_DIR?=/lib/udev/rules.d/ PUBKEY_DIR?=pubkeys RUNTIME_PUBKEY_DIR?=/etc/wireless-regdb/pubkeys +WERROR = -Werror CFLAGS += -O2 -fpic -CFLAGS += -std=gnu99 -Wall -Werror -pedantic +CFLAGS += -std=gnu99 -Wall $(WERROR) -pedantic CFLAGS += -Wall -g LDLIBREG += -lreg LDLIBS += $(LDLIBREG)