Sfoglia il codice sorgente

Here is a very small patch to remove a compiler warning when processing lib/smbios.c.

Signed-off-by: Bernard Burette <bub75@users.sf.net>
Signed-off-by: Nigel Croxon <nigel.croxon@hp.com>
Nigel Croxon 11 anni fa
parent
commit
4e8460f1ae
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 7 0
      gnu-efi-3.0/lib/smbios.c

+ 7 - 0
gnu-efi-3.0/lib/smbios.c

@@ -16,6 +16,13 @@ Revision History
 
 #include "lib.h"
 
+/*
+ * We convert 32 bit values to pointers. In 64 bit mode the compiler will issue a
+ * warning stating that the value is too small for the pointer:
+ * "warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]"
+ * we can safely ignore them here.
+ */
+#pragma GCC diagnostic ignored "-Wint-to-pointer-cast"
 
 EFI_STATUS
 LibGetSmbiosSystemGuidAndSerialNumber (