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.web12.3836.1650425784781356726 for ; Tue, 19 Apr 2022 20:36:25 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=Ud5v8ANG; 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=1650425784; x=1681961784; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=bD5ORto6SAGp+porNld6pObNhbVcoXhQa14oU4LD17Q=; b=Ud5v8ANGU6MA2pIJZVe/cDQt5EaUCNN7Maqr8EcnAK+MDKOp9m724esc TJHLytbxEgxVVi0pFkKrI+hrfTeHV3mcFqHhyHUDXqEuU61eh+blOPRVb 4WujTKfrPCxZRrn2yQZZeO/MSU0Xu/ExK/c3trOF6e9/2+2Qh+rVuY3Fg 8DFH74gSJ294HpKKsNS0IL4k5nXrBNBh7jDCW0tU3bODxkF7jzHTt58iD 1d1OiKjQtHx1UQY4M5fxgwSbnkh5aDzges7KYUWpMOuPQiCtOaTAgcAcC g1K66vE7X1Ho287L6HJA4ZkKpQKP9ACsMgXovCeYvQIF0tABSiyz7EkA8 Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10322"; a="350377614" X-IronPort-AV: E=Sophos;i="5.90,274,1643702400"; d="scan'208";a="350377614" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2022 20:36:24 -0700 X-IronPort-AV: E=Sophos;i="5.90,274,1643702400"; d="scan'208";a="529572908" Received: from duntan-mobl.ccr.corp.intel.com ([10.249.172.71]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2022 20:36:22 -0700 From: "duntan" To: devel@edk2.groups.io Cc: Jiewen Yao , Jian J Wang , Xiaoyu Lu , Guomin Jiang Subject: [PATCH] CryptoPkg: Fix the build failure in CryptoPkg Date: Wed, 20 Apr 2022 11:35:27 +0800 Message-Id: <20220420033527.752-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 | 2 +- CryptoPkg/Library/Include/CrtLibSupport.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c b/CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c index 6fcbe5885e..68e21e8fb6 100644 --- a/CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c +++ b/CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c @@ -267,7 +267,7 @@ strcspn ( char * strcpy ( - char *restrict strDest, + char *strDest, const char *strSource ) { diff --git a/CryptoPkg/Library/Include/CrtLibSupport.h b/CryptoPkg/Library/Include/CrtLibSupport.h index bdc2654b6e..bce38eaa1a 100644 --- a/CryptoPkg/Library/Include/CrtLibSupport.h +++ b/CryptoPkg/Library/Include/CrtLibSupport.h @@ -397,7 +397,7 @@ inet_pton ( char * strcpy ( - char *restrict strDest, + char *strDest, const char *strSource ); -- 2.31.1.windows.1