From patchwork Thu Aug 11 18:20:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 73811 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp242043qga; Thu, 11 Aug 2016 11:21:35 -0700 (PDT) X-Received: by 10.98.61.24 with SMTP id k24mr19620554pfa.100.1470939695225; Thu, 11 Aug 2016 11:21:35 -0700 (PDT) Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id ay6si4238559pab.279.2016.08.11.11.21.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Aug 2016 11:21:35 -0700 (PDT) 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; 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 dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id C632D1A1E02; Thu, 11 Aug 2016 11:21:34 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-wm0-x22c.google.com (mail-wm0-x22c.google.com [IPv6:2a00:1450:400c:c09::22c]) (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 A1F961A1DEB for ; Thu, 11 Aug 2016 11:21:33 -0700 (PDT) Received: by mail-wm0-x22c.google.com with SMTP id f65so7321613wmi.0 for ; Thu, 11 Aug 2016 11:21:33 -0700 (PDT) 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=jkTZ/gRND6yzo26CmLvO+SCXGwdwnp5gu7FHx+udIec=; b=fetBWg8hFl9l2fSmwbzQpzxJu6HfLLK7LRKWXWAkvq406jxgqExGoA0DgcEIsrLntt rWzlWvvJ1ViTMHlguB3CngdCaisX66JxN3BhpvPVwvqPirC6t0FulwQK0erTru0rR7nS YieBUlRKC9HNGUK2mZvVfJGW8f5wwRzY1GGCE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=jkTZ/gRND6yzo26CmLvO+SCXGwdwnp5gu7FHx+udIec=; b=h6iYEMj2vqZehynAnBIraV43ko0Tfy532A2GfthD3IHF0OTPwFnExhseIc1bddjgFw FeAiTEzTLCstxi1HIN+du6Yv8HE3YMQvK20iIkqn5VSuD8MI+4vwpwA8djTaw1snW5Tg LWyR3JynNrHLr4v6fNTjemsgePJl2vEuM15DTs5eqaPaRlESaq8jeQShQG+FCscBglh1 dXFp0qQbfdFfFN7fI87DFr4F5/EPk7+JL/NG2Hcg2KocHTn+1Am07c+7ld5iecpCcq+j ndpKmIB5T6kl70p/WpcdwV+y40bOF2k/uvkxOtPwZ+2Qt775RibZ98LsMlFPd9PyxjQv zV7Q== X-Gm-Message-State: AEkoous78A/ptnUbot9A0HOAPoKly2sTeFrC2ESbYRL4XqnlAr1LIU21gnVGLenyiPsLGrDo X-Received: by 10.28.93.130 with SMTP id r124mr10254762wmb.92.1470939692230; Thu, 11 Aug 2016 11:21:32 -0700 (PDT) Received: from localhost.localdomain (46.red-81-37-107.dynamicip.rima-tde.net. [81.37.107.46]) by smtp.gmail.com with ESMTPSA id b203sm948382wmh.20.2016.08.11.11.21.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 11 Aug 2016 11:21:31 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org, leif.lindholm@linaro.org, eugene@hp.com, liming.gao@intel.com Date: Thu, 11 Aug 2016 20:20:31 +0200 Message-Id: <1470939632-32198-2-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1470939632-32198-1-git-send-email-ard.biesheuvel@linaro.org> References: <1470939632-32198-1-git-send-email-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH 2/3] BaseTools RVCT: ignore various RVC diagnostics X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" This updates the RVCT CC flags so various diagnostics that trigger warnings-as-errors are silenced. In particular, RVCT complains about missing newlines at the end of source files, mixing of enums and int values and return statements followed by a break, all of which occur in the Tianocore codebase, but none of which are actual errors in the code. So just silence them. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel --- BaseTools/Conf/tools_def.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 _______________________________________________ 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 2002c4c0598b..e3d70133caaa 100755 --- a/BaseTools/Conf/tools_def.template +++ b/BaseTools/Conf/tools_def.template @@ -7449,7 +7449,7 @@ RELEASE_XCODE5_X64_CC_FLAGS = -target x86_64-pc-win32-macho -c -Os -W #################################################################################### DEFINE RVCT_ALL_ASM_FLAGS = --diag_suppress=1786 --diag_error=warning --apcs /interwork -DEFINE RVCT_ALL_CC_FLAGS = --c90 --no_autoinline --asm --gnu --apcs /interwork --signed_chars --no_unaligned_access --split_sections --enum_is_int --preinclude AutoGen.h --diag_suppress=186 --diag_warning 167 --diag_error=warning --diag_style=ide --protect_stack +DEFINE RVCT_ALL_CC_FLAGS = --c90 --no_autoinline --asm --gnu --apcs /interwork --signed_chars --no_unaligned_access --split_sections --enum_is_int --preinclude AutoGen.h --diag_suppress=186,188,1,111,68 --diag_warning 167 --diag_error=warning --diag_style=ide --protect_stack DEFINE RVCT_ALL_DLINK_FLAGS = --no_scanlib --no_exceptions --datacompressor off --strict --symbols --diag_style=ide --no_legacyalign --scatter $(EDK_TOOLS_PATH)/Scripts/Rvct-Align32.sct ####################################################################################