]> git.proxmox.com Git - mirror_edk2.git/commit
CryptoPkg/OpensslLib AARCH64: suppress format string warning
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 27 Dec 2017 07:52:39 +0000 (07:52 +0000)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 27 Dec 2017 08:54:06 +0000 (08:54 +0000)
commit08ba82934ebd026a0ea18405df847f0cda0441f5
tree7d15c90628f37b9d238df74214b607d03a14f1f2
parentdb0cd7ecabeeb76f236eda915d0908a40b79b6b5
CryptoPkg/OpensslLib AARCH64: suppress format string warning

On GCC Build: openssl-1.1.0g introduced one additional build warning:
 ...\openssl\crypto\asn1\x_int64.c:105:32: error: format '%ld' expects
     argument of type 'long int', but argument 3 has type 'int64_t
     {aka long long int}' [-Werror=format=]
 return BIO_printf(out, "%"BIO_PRI64"d\n", **(int64_t **)pval);
                             ^
Add "-Wno-error=format" to GCC build flags to suppress this warning,
since we have no real printf usage in BaseCryptLib, and BIO_printf()
was already wrapped as a dummy implementation in CryptoPkg.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Long Qin <qin.long@intel.com>
CryptoPkg/Library/OpensslLib/OpensslLib.inf
CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf