From patchwork Thu Dec 7 20:52:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 121075 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp8848883qgn; Thu, 7 Dec 2017 12:53:54 -0800 (PST) X-Google-Smtp-Source: AGs4zMZqnR7j3DxlP3wuKNVfAOFBJy6HD1u+LqOadVkj15/iKkbe3VRznOAAVT5V1a0EJFvE9y28 X-Received: by 10.99.5.1 with SMTP id 1mr26211560pgf.183.1512680033904; Thu, 07 Dec 2017 12:53:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512680033; cv=none; d=google.com; s=arc-20160816; b=HyC2m18brq7dO2ZgKysCVwLzRbp1/Ououv5ZUggJOxpMqo2gVDafiSoIkKGLoVScoD TV1E5kj9qhBFTil5VRukrRtd46O/zg5ZVezuoYPnbBARjQSJXSYLMeEmNBLRcdqUCXVf WPpTKkx4z78Q020OCKPqHIe9dbLziLhM+QzSkDO1v4Jh61DqEOl39rPnkVITwIIg2Jv6 Yl9wIfLVX1qv0L0gM1UXDHCU3jpdahADDQ2PxOY87/9JqKFk86+DfdjVWxafiFILR826 kKzWeJGOTTd8fHiDdqy6zUf22upJF+bCcJ4iHY2zU+pdHex3WuuyA6ZmaLXtQr02GVx0 evdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=0zlXaOgiiwCh+XNndgf2ey0dflt9tVVAKzubGi01OxE=; b=nG0JszZ1DQCwjAxKEc7tISeIFFmrMBuqxYZ7rNN8ggiaX/wuUAIUKhwDM5MXb3OP7m B1xpxlxDcNEvE3xZ00Vh5lgx15q6teJJEPbfniTKeD0OiUnZosvivvkWDJ1rKYsW93TO c4/43D04fKZ1dCjIupdW4i8FESr4VnB7jZl1Fb82LGCtmRS/S+ebnQaCVUwsVH2fgc4K vAHhNMCZHTzGQd8UNSF2WUOEjZ9NKc0eE5Zw/4UJDxavBu688xbqeXWyW5ByP5340LhN f6oj4PokM5f1X1Qx2PBPrWr9Wgcw5EK+6/JQ8NleLUhse1A4demb201e8FTtfRW7ZXTg KPHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=A6feQwUd; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id v72si4727093pfa.126.2017.12.07.12.53.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Dec 2017 12:53:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=A6feQwUd; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id D94EE21B02843; Thu, 7 Dec 2017 12:49:19 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c09::244; helo=mail-wm0-x244.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm0-x244.google.com (mail-wm0-x244.google.com [IPv6:2a00:1450:400c:c09::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 757FD21B02843 for ; Thu, 7 Dec 2017 12:49:18 -0800 (PST) Received: by mail-wm0-x244.google.com with SMTP id g75so147351wme.0 for ; Thu, 07 Dec 2017 12:53:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=TRrHbLHHCiqTlpIrqNlxexgBW9C/Fr8FGU3HyoKvVB0=; b=A6feQwUdVmrGP1+SOWrfr4t/WdCqH7ZoqBOVlCgsu6V7BqEyE7C4pl0Uh276SnLr6q GALPsXuuGsN1CpedivFUwWEHZ9PajiAtyLYjmc2zOUwrb9Bkgb4En9UrO6Yl5x7ANlRT Xx98nMj8rMyLmsgitQ9hDgny4cp1nUni0B3yc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=TRrHbLHHCiqTlpIrqNlxexgBW9C/Fr8FGU3HyoKvVB0=; b=BnifQNJze+LlIvAFdm4LpLthqs4Jh+Y20E5UaxDzzs3tXISA4UaDh59AgXRjg4BiZt 5V20GomozUkgOajOaotmpzP0VOrXaSrsvc9JNtGfLsL+vC6D/40Eo74nan8oNyEhaL+S 5fC9mdpuPx82crnKJG5PB0iH0aGf5MMmgG5lfYE0CARMTE3sugstrfEr1a+c2+2ZGjJR j452GAIpVay9CN3DFrutqH6Ob0P/MBC9cOtg3LjI308GniUvcV2/ZAbJAY/FPPeo3I0T r2MZhpGEbEQ7yZgVMUq49MSXTZf2PymJSrUg6BHlOa5UW5uqh2Klm3boCqEhyEE9lIOf wn2Q== X-Gm-Message-State: AKGB3mI54d3g+zoy7PgVU/2Pw1ygLj1pctwQFjyx5BbUcl6+cG+GATdB UVQ4HqoqYthF/OOYcXZQ42PhZEekH1g= X-Received: by 10.28.34.10 with SMTP id i10mr2321467wmi.56.1512680030405; Thu, 07 Dec 2017 12:53:50 -0800 (PST) Received: from localhost.localdomain ([160.171.158.223]) by smtp.gmail.com with ESMTPSA id v195sm35123wmf.25.2017.12.07.12.53.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Dec 2017 12:53:48 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Thu, 7 Dec 2017 20:52:49 +0000 Message-Id: <20171207205250.16312-3-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171207205250.16312-1-ard.biesheuvel@linaro.org> References: <20171207205250.16312-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH v3 2/3] BaseTools/tools_def CLANG38: add -Wno-unused-const-variable X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ard Biesheuvel , liming.gao@intel.com, leif.lindholm@linaro.org, lersek@redhat.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Commit 8b6366f87584 ("BaseTools/GCC: set -Wno-unused-const-variable on RELEASE builds") suppresses warnings about unused constant variables in RELEASE builds when building with GCC, given that they break the build under our warnings-as-errors policy. Do the same for CLANG38. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=790 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel Reviewed-by: Laszlo Ersek --- v3: add Laszlo's R-b BaseTools/Conf/tools_def.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.template index 8889f1bc488a..896ec1a9f077 100755 --- a/BaseTools/Conf/tools_def.template +++ b/BaseTools/Conf/tools_def.template @@ -5664,7 +5664,7 @@ DEFINE CLANG38_X64_PREFIX = ENV(CLANG38_BIN) DEFINE CLANG38_IA32_TARGET = -target i686-pc-linux-gnu DEFINE CLANG38_X64_TARGET = -target x86_64-pc-linux-gnu -DEFINE CLANG38_WARNING_OVERRIDES = -Wno-parentheses-equality -Wno-tautological-compare -Wno-tautological-constant-out-of-range-compare -Wno-empty-body -Wno-varargs +DEFINE CLANG38_WARNING_OVERRIDES = -Wno-parentheses-equality -Wno-tautological-compare -Wno-tautological-constant-out-of-range-compare -Wno-empty-body -Wno-unused-const-variable -Wno-varargs DEFINE CLANG38_ALL_CC_FLAGS = DEF(GCC44_ALL_CC_FLAGS) DEF(CLANG38_WARNING_OVERRIDES) -fno-stack-protector -mms-bitfields -Wno-address -Wno-shift-negative-value -Wno-unknown-pragmas -Wno-incompatible-library-redeclaration -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -msoft-float -mno-implicit-float -ftrap-function=undefined_behavior_has_been_optimized_away_by_clang -funsigned-char -fno-ms-extensions -Wno-null-dereference -Wno-unknown-warning-option ###########################