mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
fce56f5b69
Currently, when configuring OpenSSL and specifying the --strict-warnings option there are failures like the following one: crypto/bio/bio_lib.c: In function 'BIO_up_ref': include/internal/refcount.h:169:25: error: format '%p' expects argument of type 'void *', but argument 3 has type 'BIO *' {aka 'struct bio_st *'} [-Werror=format=] 169 | fprintf(stderr, "%p:%4d:%s\n", b, b->references, a) | ^~~~~~~~~~~~~ crypto/bio/bio_lib.c:185:5: note: in expansion of macro'REF_PRINT_COUNT' 185 | REF_PRINT_COUNT("BIO", a); | ^~~~~~~~~~~~~~~ include/internal/refcount.h:169:27: note: format string is defined here 169 | fprintf(stderr, "%p:%4d:%s\n", b, b->references, a) | ~^ | | | void * cc1: all warnings being treated as errors This commit adds casts to avoid the warnings. Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/13389) |
||
---|---|---|
.. | ||
__DECC_INCLUDE_EPILOGUE.H | ||
__DECC_INCLUDE_PROLOGUE.H | ||
asn1.h | ||
bio.h | ||
comp.h | ||
conf.h | ||
constant_time.h | ||
core.h | ||
cryptlib.h | ||
dane.h | ||
deprecated.h | ||
der.h | ||
dso.h | ||
dsoerr.h | ||
endian.h | ||
err.h | ||
evp.h | ||
ffc.h | ||
ktls.h | ||
namemap.h | ||
nelem.h | ||
numbers.h | ||
o_dir.h | ||
packet.h | ||
param_build_set.h | ||
passphrase.h | ||
property.h | ||
propertyerr.h | ||
provider.h | ||
refcount.h | ||
sha3.h | ||
sizes.h | ||
sm3.h | ||
sockets.h | ||
sslconf.h | ||
symhacks.h | ||
thread_once.h | ||
tlsgroups.h | ||
tsan_assist.h |