summaryrefslogtreecommitdiff
path: root/ShellPkg/Contributions.txt
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2016-08-02 16:15:31 +0200
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2016-08-03 17:41:54 +0200
commitf8d0b9662993796e89c200e9eaf38d1f54e5dd37 (patch)
tree8205a27a94e4ff742a26af70b932dada563194fe /ShellPkg/Contributions.txt
parent108c5b601860af0c3752d37e58e573e79a69c081 (diff)
downloadedk2-platforms-f8d0b9662993796e89c200e9eaf38d1f54e5dd37.tar.xz
BaseTools GCC5: disable warnings-as-errors for now
GCC5 runs in LTO mode, which means it may generate code from an intermediate representation during the link stage, at which time additional diagnostics are run that may emit warnings. Some of these warnings seem to be spurious, e.g., the following warning which is emitted when building OVMF for IA32 or ArmVirtQemu for ARM (but not for X64 resp. AARCH64) .../MdeModulePkg/Library/UefiHiiLib/HiiLib.c: In function 'HiiCreateGuidOpCode.constprop': .../MdeModulePkg/Library/UefiHiiLib/HiiLib.c:3228:10: error: function may return address of local variable [-Werror=return-local-addr] return (UINT8 *)OpCodePointer; ^ .../MdeModulePkg/Library/UefiHiiLib/HiiLib.c:3208:17: note: declared here EFI_IFR_GUID OpCode; ^ lto1: all warnings being treated as errors lto-wrapper: fatal error: gcc returned 1 exit status So before adding the contents of CC_FLAGS to the linker command line, defuse the default '-Werror' by adding '-Wno-error' to DLINK2_FLAGS for GCC5. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'ShellPkg/Contributions.txt')
0 files changed, 0 insertions, 0 deletions