edk2/BaseTools/Source/C/Include/Common
Leif Lindholm 978779d7b5 BaseTools: align ERROR/WARNING/RETURN macros with MdePkg versions
BaseTools' BaseTypes.h defined the ENCODE_ERROR macro as
 #define ENCODE_ERROR(a)              ((RETURN_STATUS)(MAX_BIT | (a)))
whereas MdePkg defines it as
 #define ENCODE_ERROR(StatusCode)     ((RETURN_STATUS)(MAX_BIT | (StatusCode)))

When building with GCC 6.3 (at least) the former triggers
"error: overflow in implicit constant conversion [-Werror=overflow]"
Resolve this by aligning it with the latter one.

This also requires aligning the BaseTools typedef of RETURN_STATUS with
the MdePkg one: INTN -> UINTN.

While at it, update adjacent ENCODE_WARNING and RETURN_ERROR as well.

Add an explicit initialization of *Alignment to 0 in GenFfs.c
GetAlignmentFromFile to get rid of a warning occuring with GCC after
this change (-Werror=maybe-uninitialized).

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
Reviewed-by: Liming Gao <liming.gao@intel.com>
2017-12-08 09:54:05 +00:00
..
BaseTypes.h BaseTools: align ERROR/WARNING/RETURN macros with MdePkg versions 2017-12-08 09:54:05 +00:00
BuildVersion.h Revert the change in r19137. 2015-12-07 09:01:44 +00:00
MdeModuleHii.h BaseTool/VfrCompiler: Support Bit fields in EFI/Buffer VarStore 2017-09-21 16:17:40 +08:00
PiFirmwareFile.h BaseTools: extend FFS alignment to 16M 2017-09-25 11:18:22 +08:00
PiFirmwareVolume.h BaseTools: PI 1.6 to support FV extended header contain FV used size 2017-10-03 08:18:15 +08:00
UefiBaseTypes.h License header updated to match correct format. 2014-08-28 13:53:34 +00:00
UefiCapsule.h License header updated to match correct format. 2014-08-28 13:53:34 +00:00
UefiInternalFormRepresentation.h BaseTools: Add HII definitions from UEFI 2.6 2016-05-16 15:47:21 +08:00
UefiMultiPhase.h BaseTools: Add missing EfiPersistentMemory to EFI_MEMORY_TYPE 2015-07-01 15:21:03 +00:00
VariableFormat.h License header updated to match correct format. 2014-08-28 13:53:34 +00:00
WorkingBlockHeader.h License header updated to match correct format. 2014-08-28 13:53:34 +00:00