From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Google-Smtp-Source: AGs4zMat2xI8+YOYOtBYz617AY66XFxupczEk/ORLSh1OZaQWg5EEvKtrVfkmMB+aZ0PBLcvj96GDg== 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 Cc: leif.lindholm@linaro.org, liming.gao@intel.com, yonghong.zhu@intel.com, steven.shi@intel.com, evan.lloyd@arm.com, lersek@redhat.com, Ard Biesheuvel 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: [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: , X-List-Received-Date: Thu, 07 Dec 2017 20:49:18 -0000 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(-) 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 ########################### -- 2.11.0