From nobody Sat Nov 2 14:23:11 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zoho.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org; Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1490111856500116.52490708395896; Tue, 21 Mar 2017 08:57:36 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 4C1C380486; Tue, 21 Mar 2017 08:57:32 -0700 (PDT) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 575AB80486 for ; Tue, 21 Mar 2017 08:57:31 -0700 (PDT) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Mar 2017 08:57:31 -0700 Received: from qlong-mobl1.ccr.corp.intel.com ([10.255.31.111]) by orsmga002.jf.intel.com with ESMTP; 21 Mar 2017 08:57:29 -0700 X-Original-To: edk2-devel@lists.01.org DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1490111851; x=1521647851; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=BB8PkhY0wVF1ecqpA5LqsAqyqniOu08noPnyN8raEJY=; b=rjze0YWUAtHSVyLsuJF5Kh9ylalRBZAT+bqK/P5vp/PmOggrawljN7T/ 6hYu7vE90+zwUxMECF4/KK4v2e8FAw==; X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,198,1486454400"; d="scan'208";a="63202347" From: Qin Long To: edk2-devel@lists.01.org Date: Tue, 21 Mar 2017 23:56:09 +0800 Message-Id: <20170321155612.1192-7-qin.long@intel.com> X-Mailer: git-send-email 2.11.1.windows.1 In-Reply-To: <20170321155612.1192-1-qin.long@intel.com> References: <20170321155612.1192-1-qin.long@intel.com> Subject: [edk2] [PATCH v1 6/9] CryptoPkg: Add extra build option to disable VS build warning 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@linaro.org, ting.ye@intel.com, ronald.cron@arm.com, jiaxin.wu@intel.com, glin@suse.com, lersek@redhat.com MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" openssl/include/openssl/lhash.h will bring C4090 build warning issue, which is one known issue for OpenSSL under Visual Studio toolchain. See more discussions at https://github.com/openssl/openssl/issues/2214. Use /wd4090 to silence this build warning until OpenSSL fix this. Cc: Ting Ye Cc: Laszlo Ersek Cc: Ard Biesheuvel Cc: Gary Lin Cc: Ronald Cron Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qin Long --- CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf | 9 ++++++--- CryptoPkg/Library/BaseCryptLib/InternalCryptLib.h | 7 +++++-- CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf | 8 +++++++- CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf | 8 +++++++- CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf | 6 ++++++ CryptoPkg/Library/TlsLib/TlsLib.inf | 9 ++++++++- 6 files changed, 39 insertions(+), 8 deletions(-) diff --git a/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf b/CryptoPkg/Li= brary/BaseCryptLib/BaseCryptLib.inf index 1a8c41fd11..bb91f899ff 100644 --- a/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf +++ b/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf @@ -6,7 +6,7 @@ # This external input must be validated carefully to avoid security issue= s such as # buffer overflow or integer overflow. # -# Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.
+# Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.
# This program and the accompanying materials # are licensed and made available under the terms and conditions of the B= SD License # which accompanies this distribution. The full text of the license may = be found at @@ -93,9 +93,12 @@ # Remove these [BuildOptions] after this library is cleaned up # [BuildOptions] + # # suppress the following warnings so we do not break the build with warn= ings-as-errors: - # C4305: truncation from type1 to type2 (Introduced by RFC3161 Timesta= mp ASN.1 declarations) - MSFT:*_*_*_CC_FLAGS =3D /wd4305 + # C4090: 'function' : different 'const' qualifiers + # + MSFT:*_*_*_CC_FLAGS =3D /wd4090 + GCC:*_GCC44_IA32_CC_FLAGS =3D "-D__cdecl=3D__attribute__((cdecl))" "-D__= declspec(t)=3D__attribute__((t))" =20 # -JCryptoPkg/Include : To disable the use of the system includes provid= ed by RVCT diff --git a/CryptoPkg/Library/BaseCryptLib/InternalCryptLib.h b/CryptoPkg/= Library/BaseCryptLib/InternalCryptLib.h index 4f9f308a7d..41452b10d3 100644 --- a/CryptoPkg/Library/BaseCryptLib/InternalCryptLib.h +++ b/CryptoPkg/Library/BaseCryptLib/InternalCryptLib.h @@ -1,4 +1,4 @@ -/** @file =20 +/** @file Internal include file for BaseCryptLib. =20 Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.
@@ -15,6 +15,10 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHE= R EXPRESS OR IMPLIED. #ifndef __INTERNAL_CRYPT_LIB_H__ #define __INTERNAL_CRYPT_LIB_H__ =20 +#undef _WIN32 +#undef _WIN64 +#undef _MSC_VER + #include #include #include @@ -31,4 +35,3 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER= EXPRESS OR IMPLIED. #endif =20 #endif - diff --git a/CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf b/CryptoPkg/Lib= rary/BaseCryptLib/PeiCryptLib.inf index f56f90e26e..fdcd8b95f5 100644 --- a/CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf +++ b/CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf @@ -13,7 +13,7 @@ # PEM handler functions, and pseudorandom number generator functions are = not=20 # supported in this instance. # -# Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved.
+# Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.
# This program and the accompanying materials # are licensed and made available under the terms and conditions of the B= SD License # which accompanies this distribution. The full text of the license may = be found at @@ -86,6 +86,12 @@ # Remove these [BuildOptions] after this library is cleaned up # [BuildOptions] + # + # suppress the following warnings so we do not break the build with warn= ings-as-errors: + # C4090: 'function' : different 'const' qualifiers + # + MSFT:*_*_*_CC_FLAGS =3D /wd4090 + GCC:*_GCC44_IA32_CC_FLAGS =3D "-D__cdecl=3D__attribute__((cdecl))" "-D__= declspec(t)=3D__attribute__((t))" =20 # -JCryptoPkg/Include : To disable the use of the system includes provid= ed by RVCT diff --git a/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf b/CryptoPkg= /Library/BaseCryptLib/RuntimeCryptLib.inf index e6daadef9d..05cd31674f 100644 --- a/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf +++ b/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf @@ -11,7 +11,7 @@ # functions, PKCS#7 SignedData sign functions, Diffie-Hellman functions, = and=20 # authenticode signature verification functions are not supported in this= instance. # -# Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.
+# Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.
# This program and the accompanying materials # are licensed and made available under the terms and conditions of the B= SD License # which accompanies this distribution. The full text of the license may = be found at @@ -99,6 +99,12 @@ # Remove these [BuildOptions] after this library is cleaned up # [BuildOptions] + # + # suppress the following warnings so we do not break the build with warn= ings-as-errors: + # C4090: 'function' : different 'const' qualifiers + # + MSFT:*_*_*_CC_FLAGS =3D /wd4090 + GCC:*_GCC44_IA32_CC_FLAGS =3D "-D__cdecl=3D__attribute__((cdecl))" "-D__= declspec(t)=3D__attribute__((t))" =20 # -JCryptoPkg/Include : To disable the use of the system includes provid= ed by RVCT diff --git a/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf b/CryptoPkg/Lib= rary/BaseCryptLib/SmmCryptLib.inf index e00a230cbc..5674714cea 100644 --- a/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf +++ b/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf @@ -97,5 +97,11 @@ # Remove these [BuildOptions] after this library is cleaned up # [BuildOptions] + # + # suppress the following warnings so we do not break the build with warn= ings-as-errors: + # C4090: 'function' : different 'const' qualifiers + # + MSFT:*_*_*_CC_FLAGS =3D /wd4090 + GCC:*_GCC44_IA32_CC_FLAGS =3D "-D__cdecl=3D__attribute__((cdecl))" "-D__= declspec(t)=3D__attribute__((t))" XCODE:*_*_*_CC_FLAGS =3D -mmmx -msse diff --git a/CryptoPkg/Library/TlsLib/TlsLib.inf b/CryptoPkg/Library/TlsLib= /TlsLib.inf index 2122b3b595..d4ce646591 100644 --- a/CryptoPkg/Library/TlsLib/TlsLib.inf +++ b/CryptoPkg/Library/TlsLib/TlsLib.inf @@ -1,7 +1,7 @@ ## @file # SSL/TLS Wrapper Library Instance based on OpenSSL. # -# Copyright (c) 2016, Intel Corporation. All rights reserved.
+# Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.
# (C) Copyright 2016 Hewlett Packard Enterprise Development LP
# This program and the accompanying materials # are licensed and made available under the terms and conditions of the B= SD License @@ -47,3 +47,10 @@ OpensslLib IntrinsicLib PrintLib + +[BuildOptions] + # + # suppress the following warnings so we do not break the build with warn= ings-as-errors: + # C4090: 'function' : different 'const' qualifiers + # + MSFT:*_*_*_CC_FLAGS =3D /wd4090 --=20 2.11.1.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel