1) Add type casting for argument "a" in EFI_ERROR(a), since if compare two constants without specify data type, compiler maybe could not understand what is the actual data type of constant. The default would treat it as unsigned data. therefore, if the argument a of EFI_ERROR(a) is constant, for instance the EFI_LOAD_ERROR, the EFI_ERROR(a) would always be FALSE.

2) Remove PcdDriverPcdLibNull.
3) Add more ASSERT() in BasePcdLibNull to detect the incorrect usage of Pcd Library.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3643 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
yshang1
2007-08-15 06:17:29 +00:00
parent 9833aeafa3
commit cdebf6c68a
5 changed files with 60 additions and 929 deletions

View File

@@ -261,7 +261,7 @@ typedef INTN RETURN_STATUS;
#define ENCODE_ERROR(a) (MAX_BIT | (a))
#define ENCODE_WARNING(a) (a)
#define RETURN_ERROR(a) ((a) < 0)
#define RETURN_ERROR(a) ((INTN) (a) < 0)
#define RETURN_SUCCESS 0
#define RETURN_LOAD_ERROR ENCODE_ERROR (1)