From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Cc: Ard Biesheuvel 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: [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: , X-List-Received-Date: Thu, 11 Aug 2016 18:21:34 -0000 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(-) 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 #################################################################################### -- 2.7.4