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 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-Google-Smtp-Source: AGs4zMY/SIXR6vYIAQnJcPl70w6pA3pmB7QLY/O42slQOC1HVIKdKUOxm5wATxy15rUGkqn+Gx15Ww== 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 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 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: [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: , X-List-Received-Date: Thu, 07 Dec 2017 09:24:38 -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 --- v2: new patch 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 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 ########################### -- 2.11.0