summaryrefslogtreecommitdiff
path: root/lib/smbios.c
diff options
context:
space:
mode:
authorNigel Croxon <nigel.croxon@hp.com>2015-01-05 13:13:22 -0500
committerNigel Croxon <nigel.croxon@hp.com>2015-01-05 13:13:22 -0500
commit09027207f7c18af6caa45a744fc15c90b2a829db (patch)
tree413d98786eae8b61ef80bc97a0655b6cc2bb1102 /lib/smbios.c
parent15805ff38b83a72c2c7c96a24bd642ee1176d819 (diff)
downloadgnu-efi-09027207f7c18af6caa45a744fc15c90b2a829db.tar.gz
From: Pete Batard <pete@akeo.ie>
Date: Wed, 10 Dec 2014 21:08:34 +0000 Subject: [PATCH] fixes for MSVC compilation These fixes are needed to address the following error and warnings when compiling the library part using Visual Studio 2013 Community Edition (as in https://github.com/pbatard/uefi-simple): * "lib\x86_64\math.c(49): error C4235: nonstandard extension used : '_asm' keyword not supported on this architecture" * "lib\print.c(98): error C2059: syntax error : '('" due to placement of EFIAPI macro * "lib\cmdline.c(94): warning C4090: 'function' : different 'const' qualifiers" * "lib\smbios.c(25): warning C4068: unknown pragma" * Also update macro definitions in "inc\<arch>\efibind.h" for MSVC Signed-off-by: Pete Batard <pete@akeo.ie> Signed-off-by: Nigel Croxon <nigel.croxon@hp.com>
Diffstat (limited to 'lib/smbios.c')
-rw-r--r--lib/smbios.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/smbios.c b/lib/smbios.c
index 92b2d3e..d349fb6 100644
--- a/lib/smbios.c
+++ b/lib/smbios.c
@@ -22,7 +22,9 @@ Revision History
* "warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]"
* we can safely ignore them here.
*/
+#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wint-to-pointer-cast"
+#endif
EFI_STATUS
LibGetSmbiosSystemGuidAndSerialNumber (