summaryrefslogtreecommitdiffstats
path: root/EdkCompatibilityPkg/Foundation
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-18 09:57:59 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-18 09:57:59 +0000
commit1bfbd131fa3e4034254e299dde8017df01cfed11 (patch)
tree9a04fa02351fac987d0017ed2e9f4c5ba768816b /EdkCompatibilityPkg/Foundation
parent78d9194775db8bef1b8a5a29a3af62e0982a68ea (diff)
downloadedk2-1bfbd131fa3e4034254e299dde8017df01cfed11.tar.gz
edk2-1bfbd131fa3e4034254e299dde8017df01cfed11.tar.bz2
edk2-1bfbd131fa3e4034254e299dde8017df01cfed11.zip
ICC Cleanup:
#if __INTEL_COMPILER // // Disable the extra ";" warning; // All places referencing EFI_GUID_STRING MACRO will generate this error. // #pragma warning ( disable : 424 ) // // error #593: variable "Status" was set but never used // This error may be flagged if a function only do ASSERT on return status when // EFI_DEBUG is not defined (EDK's ASSERT will be defined as empty statement). // To make EdkCompatibilityPkg buildable by ICC with EFI_DEBUG undefined, disable // this warning. // #pragma warning ( disable : 593 ) // // Disable ICC's remark #869: "Parameter" was never referenced warning. // This is legal ANSI C code so we disable the remark that is turned on with -Wall // #pragma warning ( disable : 869 ) // // Disable ICC's remark #1418: external function definition with no prior declaration. // This is legal ANSI C code so we disable the remark that is turned on with /W4 // #pragma warning ( disable : 1418 ) // // Disable ICC's remark #1419: external declaration in primary source file // This is legal ANSI C code so we disable the remark that is turned on with /W4 // #pragma warning ( disable : 1419 ) #endif git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6602 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkCompatibilityPkg/Foundation')
-rw-r--r--EdkCompatibilityPkg/Foundation/Include/Ipf/EfiBind.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/EdkCompatibilityPkg/Foundation/Include/Ipf/EfiBind.h b/EdkCompatibilityPkg/Foundation/Include/Ipf/EfiBind.h
index cad7ca1de8..7c289c1dbe 100644
--- a/EdkCompatibilityPkg/Foundation/Include/Ipf/EfiBind.h
+++ b/EdkCompatibilityPkg/Foundation/Include/Ipf/EfiBind.h
@@ -41,6 +41,45 @@ Abstract:
#if _MSC_EXTENSIONS
+
+#if __INTEL_COMPILER
+
+//
+// Disable the extra ";" warning;
+// All places referencing EFI_GUID_STRING MACRO will generate this error.
+//
+#pragma warning ( disable : 424 )
+
+//
+// error #593: variable "Status" was set but never used
+// This error may be flagged if a function only do ASSERT on return status when
+// EFI_DEBUG is not defined (EDK's ASSERT will be defined as empty statement).
+// To make EdkCompatibilityPkg buildable by ICC with EFI_DEBUG undefined, disable
+// this warning.
+//
+#pragma warning ( disable : 593 )
+
+//
+// Disable ICC's remark #869: "Parameter" was never referenced warning.
+// This is legal ANSI C code so we disable the remark that is turned on with -Wall
+//
+#pragma warning ( disable : 869 )
+
+//
+// Disable ICC's remark #1418: external function definition with no prior declaration.
+// This is legal ANSI C code so we disable the remark that is turned on with /W4
+//
+#pragma warning ( disable : 1418 )
+
+//
+// Disable ICC's remark #1419: external declaration in primary source file
+// This is legal ANSI C code so we disable the remark that is turned on with /W4
+//
+#pragma warning ( disable : 1419 )
+
+#endif
+
+
//
// Disable warning that make it impossible to compile at /W4