From patchwork Thu Dec 7 09:28:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 120943 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp8124464qgn; Thu, 7 Dec 2017 01:29:13 -0800 (PST) X-Google-Smtp-Source: AGs4zMYccTxud0IXzztiGbUkki5Vu7UyvPv53Z476SWtzrARy7rbj4X/2LXH/H7OH9ABUovGtiL+ X-Received: by 10.99.149.76 with SMTP id t12mr13400605pgn.382.1512638953505; Thu, 07 Dec 2017 01:29:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512638953; cv=none; d=google.com; s=arc-20160816; b=Bw3FxgiyXtS/gtCJCTaugmV17i+gbuaEHE/kv0IJcbXkkD6YeXYvpmCETrq95bT9Au rzLuIKI3GPrknD+PKV5X2Kmksx+ABGzE5H6OJMeJTbB7UUIRWm3MPU5J08u+ir9tjyQ1 r6DuxOpF+3ogedq330mhmGAJFsxJ8zHyWp050sRejd8ErJkfv0OLVfZX1bZIrihCfbA5 xdozcCNdsTneeu0ggg44xjQl6JSNksZ8O3Z6ecX8BNWTJYQvQP+sDxLOzP1o7Bt94Ewn KYCV6O5D8xtjz0eCVTWPfPopg9ipfAEYE9eiIycC1E94Wif7gow1FJsSCcsAp4CABrZ1 sNwg== 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=xNv656rljH/Cq7sghEJTVRMKs+L9lgYaPFrMDHKFMS8=; b=UpCyMGf7cc9qBJqw6KV/BRITbVDBMa/5j+7yMRmRQxs0o/0C/SsNYFRaZc9Y3qv+rD 6x9hCUVGsZF5U6qgyyEDt0itad7yHUUnj1W+TWmbYVhq/jzrhhaAXJAc0f0Ua3E47ohI KQ3bApzt19mz8cVEh1mbEaECNFQBmmfXrGowM6UjAtn06woYmAH+CG32btPJ093NgvjW 59jtgk54qnYz0pnjKyYypwYEX5ica8ChAD2vFxbis7blgGUEfmLg3wnX6c1QWDqEAO61 7a/Jk7s7AgTtti971CCbcAMwZk0RcbTCyvS3klc2cll/mKlJlygwy83PRXNWdiKuGu0z 3QFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Qr+U+KQE; 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 g8si2287306plt.217.2017.12.07.01.29.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Dec 2017 01:29:13 -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=Qr+U+KQE; 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 6DC0021B02847; Thu, 7 Dec 2017 01:24:39 -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 0481F21B0283C for ; Thu, 7 Dec 2017 01:24:37 -0800 (PST) Received: by mail-wm0-x244.google.com with SMTP id f9so11747511wmh.0 for ; Thu, 07 Dec 2017 01:29:10 -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=z9JEW+WAdUKO4bFIhE8txBn2WWmcRgRbPYPmkBXf1cg=; b=Qr+U+KQEz7plbGxtYfFM63sC9MxmkzA+WTDZb3ymWUa/49cNtBvUCbAR1X6NZUQHde WnROESJmlh+Dl/YVnNw2Y/58amH986eeXu44RmN7IdrP4Ep7xzF68XSnlAb2A72qN/Pa JGWZhHYgX7eJE6vACWadkyoxLTCVXX7qZ9GbI= 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=z9JEW+WAdUKO4bFIhE8txBn2WWmcRgRbPYPmkBXf1cg=; b=jYy/7sCXBLVk0vPHqOeRSguk/2sDbHJF83RqJrMVjS47Pcb508NXNj0KI0Oj8n1RJ0 3Fw+OsYUr+GMi1TTHCmBY5CLw6+4ldHyxtHCUDmKDSnnQHRLL3xYcx+g3TaasoVBzEqF SJV7PoFOqkKvuunTC+bURTAWQN3aTdhA8vSdVxQrsDWi1a0msugBa3D8IBgHD7a37tro +/+8/SjuSOGp5nnb1D6MqbLs809vAM4b9R0n4ZqVpwwPixtGO+3BXtRsm6Ru9x4hdj7n rP4DlBb1FZW4vu3eZzZl/R2ZC8COLlmOv+MdY3yi7RQMEWb+6uAlnVcJfYuR3A1PEPZB V26Q== X-Gm-Message-State: AKGB3mLF8ADqi5kINnTjD+UH8dF2EIMl/mLYSdQCYMP4KAQJZcQ2Pl17 sOeakWQIlLVccSQbefr8wR8rrS4Gu7U= X-Received: by 10.28.181.209 with SMTP id e200mr524938wmf.68.1512638949316; Thu, 07 Dec 2017 01:29:09 -0800 (PST) Received: from localhost.localdomain ([105.150.171.234]) by smtp.gmail.com with ESMTPSA id w142sm3151141wme.13.2017.12.07.01.29.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Dec 2017 01:29:08 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Thu, 7 Dec 2017 09:28:50 +0000 Message-Id: <20171207092851.2118-3-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171207092851.2118-1-ard.biesheuvel@linaro.org> References: <20171207092851.2118-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH v2 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 --- v2: new patch 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 Reviewed-by: Laszlo Ersek Reviewed-by: Shi Steven diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.template index c0189d4c8d30..703884fc49a7 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 ###########################