mirror of
https://git.proxmox.com/git/mirror_edk2
synced 2025-10-12 21:47:05 +00:00
![]() 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> |
||
---|---|---|
.. | ||
BootSectImage | ||
BrotliCompress | ||
Common | ||
EfiLdrImage | ||
EfiRom | ||
GenBootSector | ||
GenCrc32 | ||
GenFfs | ||
GenFv | ||
GenFw | ||
GenPage | ||
GenSec | ||
GenVtf | ||
GnuGenBootSector | ||
Include | ||
LzmaCompress | ||
Makefiles | ||
PyEfiCompressor | ||
PyUtility | ||
Split | ||
TianoCompress | ||
VfrCompile | ||
VolInfo | ||
GNUmakefile | ||
Makefile |