]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ICC Cleanup:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 18 Nov 2008 09:57:59 +0000 (09:57 +0000)
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 18 Nov 2008 09:57:59 +0000 (09:57 +0000)
#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

EdkCompatibilityPkg/Foundation/Include/Ipf/EfiBind.h

index cad7ca1de8c86cd3e948e254deb7bf1f26aca5db..7c289c1dbea6b1edcde12a33b055d0e0ef69a49a 100644 (file)
@@ -41,6 +41,45 @@ Abstract:
 \r
 \r
 #if _MSC_EXTENSIONS \r
+\r
+#if __INTEL_COMPILER\r
+\r
+//\r
+// Disable the extra ";" warning;\r
+// All places referencing EFI_GUID_STRING MACRO will generate this error.\r
+//\r
+#pragma warning ( disable : 424 )\r
+\r
+//\r
+// error #593: variable "Status" was set but never used\r
+// This error may be flagged if a function only do ASSERT on return status when \r
+// EFI_DEBUG is not defined (EDK's ASSERT will be defined as empty statement).\r
+// To make EdkCompatibilityPkg buildable by ICC with EFI_DEBUG undefined, disable\r
+// this warning.\r
+//\r
+#pragma warning ( disable : 593 )\r
+\r
+//\r
+// Disable ICC's remark #869: "Parameter" was never referenced warning.\r
+// This is legal ANSI C code so we disable the remark that is turned on with -Wall\r
+//\r
+#pragma warning ( disable : 869 )\r
+\r
+//\r
+// Disable ICC's remark #1418: external function definition with no prior declaration.\r
+// This is legal ANSI C code so we disable the remark that is turned on with /W4\r
+//\r
+#pragma warning ( disable : 1418 )\r
+\r
+//\r
+// Disable ICC's remark #1419: external declaration in primary source file\r
+// This is legal ANSI C code so we disable the remark that is turned on with /W4\r
+//\r
+#pragma warning ( disable : 1419 )\r
+\r
+#endif\r
+\r
+\r
     \r
 //\r
 // Disable warning that make it impossible to compile at /W4\r