]> git.proxmox.com Git - mirror_edk2.git/commit - CryptoPkg/Library/OpensslLib/OpensslLib.inf
CryptoPkg/OpensslLib: Suppress extra build warnings in openssl source
authorQin Long <qin.long@intel.com>
Fri, 31 Mar 2017 11:31:23 +0000 (19:31 +0800)
committerQin Long <qin.long@intel.com>
Thu, 6 Apr 2017 16:24:16 +0000 (00:24 +0800)
commit81bec7aa5216dac2013c95d58559ebd414b84bce
tree01781ee5f8e1c8a8e8c16968fe2dc840b0dbd871
parentabc4c8173dab56633e883847721da577e8c80388
CryptoPkg/OpensslLib: Suppress extra build warnings in openssl source

(Need further follow-ups as described in
    https://bugzilla.tianocore.org/show_bug.cgi?id=455)

This patch added some extra build options to suppress possible warnings
when building openssl source under GCC48 and VS2010. Including:

Adding "-Wno-error=maybe-uninitialized" to suppress the following GCC48
build warning:
  OpensslLib/openssl/ssl/statem/statem_clnt.c:2543:9: error: "len" may
     be used uninitialized in this function [-Werror=maybe-uninitialized]
       len += pskhdrlen;
           ^

And adding "/wd4306" to suppress the following VS2010 build warning:
  openssl\crypto\asn1\tasn_dec.c(795) : warning C4306: 'type cast' :
               conversion from 'int' to 'ASN1_VALUE *' of greater size

Cc: Ting Ye <ting.ye@intel.com>
Cc: Hao Wu <hao.a.wu@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qin Long <qin.long@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
CryptoPkg/Library/OpensslLib/OpensslLib.inf
CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf