diff options
author | Scott Duplichan <scott@notabs.org> | 2015-04-10 02:41:59 +0000 |
---|---|---|
committer | mauricema <mauricema@Edk2> | 2015-04-10 02:41:59 +0000 |
commit | 08248f45433e527609c9c4456f331e60c277f3b4 (patch) | |
tree | 9bb9859667d87908721fddc9a4695477cf6d1e2d /CorebootModulePkg | |
parent | 8e0fdb3aa7fdfa1dee5660392d55ac0d1469d344 (diff) | |
download | edk2-platforms-08248f45433e527609c9c4456f331e60c277f3b4.tar.xz |
CorebootModulePkg: Avoid gcc compile fail caused by unrecognized pragma
Prevent gcc from preprocessing Microsofrt specific pragma. Otherwise
compile will fail with error: -Werror=unknown-pragma.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Scott Duplichan <scott@notabs.org>
Reviewed-by: Prince Agyeman <prince.agyeman@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17152 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'CorebootModulePkg')
-rw-r--r-- | CorebootModulePkg/Include/Coreboot.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CorebootModulePkg/Include/Coreboot.h b/CorebootModulePkg/Include/Coreboot.h index 7bec1f3d6f..703c034ca9 100644 --- a/CorebootModulePkg/Include/Coreboot.h +++ b/CorebootModulePkg/Include/Coreboot.h @@ -45,7 +45,9 @@ #ifndef _COREBOOT_PEI_H_INCLUDED_
#define _COREBOOT_PEI_H_INCLUDED_
+#if defined(_MSC_VER)
#pragma warning( disable : 4200 )
+#endif
#define DYN_CBMEM_ALIGN_SIZE (4096)
|