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>
This commit is contained in:
Nigel Croxon 2014-04-14 13:53:03 -04:00
parent 6a0875ca2f
commit 4e8460f1ae

View File

@ -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 (