From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: None (no SPF record) identity=mailfrom; client-ip=2a00:1450:400c:c09::244; helo=mail-wm0-x244.google.com; envelope-from=pete@akeo.ie; 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 710202243693C for ; Fri, 23 Feb 2018 01:44:13 -0800 (PST) Received: by mail-wm0-x244.google.com with SMTP id s206so6145093wme.0 for ; Fri, 23 Feb 2018 01:50:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akeo-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=WrEDWcabl9USjcPTiR250WkAYtGVaViLjn2nl+8jfBo=; b=IkGAQ3hmq3G093RbNEK9qw/pfv1ZiavaWXrxe/w9jRHZs2xHJLoW0hE7ojRGKVJ1XP YNUsdZbSdTXKm3tNKB+ZtUqTWfxN5q9U/GS1Ans2SGuvhId7r+ZKH3s8cpYx0pmzCjW5 AabMfG53zGlTL3tnaP64q0vbZtIE0qYjdT9wZCptRgPlmCvtTB1I316vQsFyLB1CygFb HsAauP2W/ezN2lmn5kFLFHYrC+vLZyKgKnll4NnRZGURSbFq1CxoDUG1uUk/Vyqc9FPD cjwSJByD4ASWKse6eN+RsMte8jcFPrSPBd6b2xq5iOPz7EN1S2cqcdDY81M26MYMRAbp rZHg== 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=WrEDWcabl9USjcPTiR250WkAYtGVaViLjn2nl+8jfBo=; b=hIPxefzEsr3LIBwYTJ/FikW1g+qQGN0EAapCq9kJXhhuNMkJegcr0t0YOzHdRUVzJo +H1CCmGnC7v2PdUupMgJkpV6VjZUbeefVq5G+bc1ErDsj7r62dY+wvhbZPauaGlCP0cJ FdyZM33pXfYEvNnieoY6CM/Q3XqWbOXETpxAgxF+BI05/pWs6CTLrUeSe/Zsi/TUxSh5 qXjL39oIsWf+gJgLid2WyH4y9vnH7kFC9uOxPgHZgYk/XOAGgaXNwFz4e2SbfLNEnd6k OmiS8HLc4MEEhkWPujD5MFpBa4LMRAV23/nE9916jNCW1FSb0ilY9qLn26lz0U4wn62R +9pw== X-Gm-Message-State: APf1xPABb2ptuVALxZNImjLkpAMb34avrdnyCBm1Rji11jigcluaZERN ZFshMjOpvcmJtUThHSsP3fzKGcJlAr4= X-Google-Smtp-Source: AH8x224kNbrmmE9yDk+M6qEMyVaqaw5OGGK2bEasOhlqgSdAAAh9bxdlZoIxGQUiPTeprMZvEr1JEw== X-Received: by 10.80.171.27 with SMTP id s27mr2032795edc.263.1519379413937; Fri, 23 Feb 2018 01:50:13 -0800 (PST) Received: from localhost.localdomain ([84.203.54.151]) by smtp.gmail.com with ESMTPSA id z11sm1640521edh.94.2018.02.23.01.50.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Feb 2018 01:50:13 -0800 (PST) From: Pete Batard To: edk2-devel@lists.01.org Cc: liming.gao@intel.com, ard.biesheuvel@linaro.org Date: Fri, 23 Feb 2018 09:50:00 +0000 Message-Id: <20180223095003.6012-2-pete@akeo.ie> X-Mailer: git-send-email 2.9.3.windows.2 In-Reply-To: <20180223095003.6012-1-pete@akeo.ie> References: <20180223095003.6012-1-pete@akeo.ie> Subject: [PATCH 1/4] MdePkg: Disable some Level 4 warnings for VS2017/ARM64 X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Feb 2018 09:44:15 -0000 We disable the exact same warnings as IA32 and X64. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Pete Batard --- MdePkg/Include/AArch64/ProcessorBind.h | 53 +++++++++++++++++++- 1 file changed, 51 insertions(+), 2 deletions(-) diff --git a/MdePkg/Include/AArch64/ProcessorBind.h b/MdePkg/Include/AArch64/ProcessorBind.h index bc473562f9e5..968c18f915ae 100644 --- a/MdePkg/Include/AArch64/ProcessorBind.h +++ b/MdePkg/Include/AArch64/ProcessorBind.h @@ -1,7 +1,7 @@ /** @file Processor or Compiler specific defines and types for AArch64. - Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.
+ Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
Portions copyright (c) 2011 - 2013, ARM Ltd. All rights reserved.
@@ -30,7 +30,53 @@ #pragma pack() #endif -#if _MSC_EXTENSIONS +#if defined(_MSC_EXTENSIONS) + +// +// Disable some level 4 compilation warnings (same as IA32 and X64) +// + +// +// Disabling bitfield type checking warnings. +// +#pragma warning ( disable : 4214 ) + +// +// Disabling the unreferenced formal parameter warnings. +// +#pragma warning ( disable : 4100 ) + +// +// Disable slightly different base types warning as CHAR8 * can not be set +// to a constant string. +// +#pragma warning ( disable : 4057 ) + +// +// ASSERT(FALSE) or while (TRUE) are legal constructs so suppress this warning +// +#pragma warning ( disable : 4127 ) + +// +// This warning is caused by functions defined but not used. For precompiled header only. +// +#pragma warning ( disable : 4505 ) + +// +// This warning is caused by empty (after preprocessing) source file. For precompiled header only. +// +#pragma warning ( disable : 4206 ) + +// +// Disable 'potentially uninitialized local variable X used' warnings +// +#pragma warning ( disable : 4701 ) + +// +// Disable 'potentially uninitialized local pointer variable X used' warnings +// +#pragma warning ( disable : 4703 ) + // // use Microsoft* C compiler dependent integer width types // @@ -45,7 +91,9 @@ typedef unsigned char UINT8; typedef char CHAR8; typedef signed char INT8; + #else + // // Assume standard AARCH64 alignment. // @@ -60,6 +108,7 @@ typedef unsigned char UINT8; typedef char CHAR8; typedef signed char INT8; + #endif /// -- 2.9.3.windows.2