portable icon indicating copy to clipboard operation
portable copied to clipboard

compiler warnings with LibreSSL 3.7.3 (gcc 9, macOS, mingw-w64)

Open vszakats opened this issue 10 months ago • 9 comments

gcc 9:
../../crypto/x509/x509_addr.c:732:9: warning: 'afi' may be used uninitialized in this function [-Wmaybe-uninitialized]

mingw-w64 llvm 16 when built against curl (8.2.1):
../../libressl/x64-ucrt/usr/include/openssl/ossl_typ.h:90:2: warning: #warning is a C2x extension [-Wpedantic]
../../libressl/x64-ucrt/usr/include/openssl/ossl_typ.h:90:2: warning: overriding WinCrypt defines [-W#warnings]
../../libressl/x64-ucrt/usr/include/openssl/x509.h:120:2: warning: #warning is a C2x extension [-Wpedantic]
../../libressl/x64-ucrt/usr/include/openssl/x509.h:120:2: warning: overriding WinCrypt defines [-W#warnings]
../../libressl/x64-ucrt/usr/include/openssl/pkcs7.h:77:2: warning: #warning is a C2x extension [-Wpedantic]
../../libressl/x64-ucrt/usr/include/openssl/pkcs7.h:77:2: warning: overriding WinCrypt defines [-W#warnings]

Apple clang 14 autotools with -mmacosx-version-min=10.13:
../../../apps/nc/netcat.c:470:8: warning: 'mktemp' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of mktemp(3), it is highly recommended that you use mkstemp(3) instead. [-Wdeprecated-declarations]

[note: strtonum is detected by ./configure, despite passing -mmacosx-version-min=10.13]
../../crypto/x509/x509_addr.c:1629:17: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]

../../../apps/ocspcheck/ocspcheck.c:169:8: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/asn1pars.c:96:13: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/asn1pars.c:110:15: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/asn1pars.c:344:8: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/apps.c:466:8: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/apps.c:1802:12: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/apps.c:2168:10: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/apps.c:2178:10: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/apps.c:2188:10: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/dsaparam.c:189:13: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/gendh.c:160:13: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/ocsp.c:230:14: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/ocsp.c:244:13: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/ocsp.c:263:21: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/ocsp.c:304:15: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/ocsp.c:326:20: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/ocsp.c:362:13: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/req.c:201:13: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/req.c:1600:12: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/req.c:1628:14: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/s_client.c:254:24: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/s_client.c:268:19: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/s_client.c:388:17: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/s_server.c:309:24: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/s_server.c:323:19: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/s_server.c:420:26: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/s_server.c:456:17: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/s_server.c:471:17: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/s_socket.c:315:6: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/speed.c:564:12: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/speed.c:2099:11: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/speed.c:2109:9: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/speed.c:2129:9: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/speed.c:2150:9: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/speed.c:2171:9: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/speed.c:2193:9: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/x509.c:217:20: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/x509.c:239:13: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/openssl/certhash.c:281:8: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/nc/netcat.c:224:12: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/nc/netcat.c:238:10: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/nc/netcat.c:243:13: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/nc/netcat.c:287:16: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/nc/netcat.c:292:14: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/nc/netcat.c:315:12: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/nc/netcat.c:321:12: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/nc/netcat.c:345:18: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]
../../../apps/nc/netcat.c:1462:9: warning: 'strtonum' is only available on macOS 11.0 or newer [-Wunguarded-availability-new]

vszakats avatar Sep 06 '23 13:09 vszakats