From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web09.4467.1650432593633123498 for ; Tue, 19 Apr 2022 22:29:54 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=PUvvSZ2c; spf=pass (domain: intel.com, ip: 192.55.52.43, mailfrom: dun.tan@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650432593; x=1681968593; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ynKT08s19JiRGqSnNVBvw5aAOEh4eHtnuiqUwgvlkcE=; b=PUvvSZ2cp3lEJSCqvRxdZxtkDC9UBUQEqNFy+LObv7JUVCOn4RPpBQ6R Y3xgnxsSm7YpVxMvnHpnGF0kV7f8TA8pJeAkof5aqzPCZYbYREcmLXRbv QthQHl8VcgHmJYQbEFGG4SY5wvuNpu9k+Qtn513BVXOJCzQ0ZFTp4Mjva fYt/kqYNplK9S36GZs9eidZ7sUQKKiiAwanTI7k5fLYGTGF0zPy2bRz3i +jAABaJIBzyFGBGXMu0ejJGRI+xOJMVhaFz09VUXb+XgXyzTaTJYhKf/L dU+RFmJB8D6CT1aTG7QRfWMkzG+an+E4pVjUN8y71jJcirdCv2UfbHBCG w==; X-IronPort-AV: E=McAfee;i="6400,9594,10322"; a="350392008" X-IronPort-AV: E=Sophos;i="5.90,274,1643702400"; d="scan'208";a="350392008" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2022 22:29:53 -0700 X-IronPort-AV: E=Sophos;i="5.90,274,1643702400"; d="scan'208";a="593048046" Received: from duntan-mobl.ccr.corp.intel.com ([10.249.172.71]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2022 22:29:51 -0700 From: "duntan" To: devel@edk2.groups.io Cc: Jiewen Yao , Jian J Wang , Xiaoyu Lu , Guomin Jiang Subject: [Patch V2] CryptoPkg: Fix the build failure in CryptoPkg Date: Wed, 20 Apr 2022 13:29:22 +0800 Message-Id: <20220420052922.1672-1-dun.tan@intel.com> X-Mailer: git-send-email 2.31.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3908 Fix the build failure in CryptoPkg caused by this commit: fab6285a73("CryptoPkg/CrtLibSupport: fix strcpy") Remove the 'restrict' keyword which starts in VS2019. Signed-off-by: Dun Tan Cc: Jiewen Yao Cc: Jian J Wang Cc: Xiaoyu Lu Cc: Guomin Jiang --- CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c | 4 ++-- CryptoPkg/Library/Include/CrtLibSupport.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c b/CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c index 6fcbe5885e..c1fc33538f 100644 --- a/CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c +++ b/CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c @@ -267,8 +267,8 @@ strcspn ( char * strcpy ( - char *restrict strDest, - const char *strSource + char *strDest, + const char *strSource ) { AsciiStrCpyS (strDest, MAX_STRING_SIZE, strSource); diff --git a/CryptoPkg/Library/Include/CrtLibSupport.h b/CryptoPkg/Library/Include/CrtLibSupport.h index bdc2654b6e..e49060124f 100644 --- a/CryptoPkg/Library/Include/CrtLibSupport.h +++ b/CryptoPkg/Library/Include/CrtLibSupport.h @@ -397,8 +397,8 @@ inet_pton ( char * strcpy ( - char *restrict strDest, - const char *strSource + char *strDest, + const char *strSource ); // -- 2.31.1.windows.1