From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smic.int.bsdio.com (smic.int.bsdio.com [65.103.231.193]) by mx.groups.io with SMTP id smtpd.web11.773.1586992231988095708 for ; Wed, 15 Apr 2020 16:10:32 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: smic.int.bsdio.com, ip: 65.103.231.193, mailfrom: bcran@smic.int.bsdio.com) Received: from smic.int.bsdio.com (localhost [127.0.0.1]) by smic.int.bsdio.com (8.15.2/8.15.2) with ESMTPS id 03FNACvi078024 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 15 Apr 2020 17:10:12 -0600 (MDT) (envelope-from bcran@smic.int.bsdio.com) Received: (from bcran@localhost) by smic.int.bsdio.com (8.15.2/8.15.2/Submit) id 03FNAC5D077905; Wed, 15 Apr 2020 17:10:12 -0600 (MDT) (envelope-from bcran) From: "Rebecca Cran" To: devel@edk2.groups.io Cc: Jordan Justen , Laszlo Ersek , Ard Biesheuvel , Rebecca Cran Subject: [PATCH 12/13] BhyvePkg: __attribute__ doesn't exist on MSVC toolchains Date: Wed, 15 Apr 2020 17:09:38 -0600 Message-Id: <8cb6b734f253884adb30f301c5bc9f8d933ddc33.1586991816.git.rebecca@bsdio.com> X-Mailer: git-send-email 2.26.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Only use __attribute__ ((unused)) when building using a compiler which claims to support GNU C. Signed-off-by: Rebecca Cran --- BhyvePkg/Library/PlatformBootManagerLib/BdsPlatform.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BhyvePkg/Library/PlatformBootManagerLib/BdsPlatform.c b/BhyveP= kg/Library/PlatformBootManagerLib/BdsPlatform.c index 48f7473788..4a08d12ece 100644 --- a/BhyvePkg/Library/PlatformBootManagerLib/BdsPlatform.c +++ b/BhyvePkg/Library/PlatformBootManagerLib/BdsPlatform.c @@ -1358,7 +1358,9 @@ PlatformBdsConnectSequence ( Note that DxeSmmReadyToLock must be signaled after this function returns= ;=0D otherwise the script wouldn't be saved actually.=0D **/=0D +#if defined(__GNUC__)=0D __attribute__((unused))=0D +#endif=0D STATIC=0D VOID=0D SaveS3BootScript (=0D --=20 2.26.1