You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[OpenSSL]:'may be used uninitialized' warning #1083
Hi,
when configuring libssh2 with high optimization, the gcc throws the following error:
/home/rahmanih/github/libssh2/src/openssl.c:381:19: warning: ‘type’ may be used uninitialized in this function [-Wmaybe-uninitialized]
381 | *out_type = type;
| ~~~~~~~~~~^~~~~~
Activity
[-][OpenSSL]:'may be used uninitialized' warining[/-][+][OpenSSL]:'may be used uninitialized' warning[/+]vszakats commentedon Jun 4, 2023
It's fairly non-obvious to find a valid reason behind this one, unless it is a false-positive in both MSVC (where we silence it already) and gcc.
Does this patch silence it for you?:
and this one?:
vszakats commentedon Jun 4, 2023
Can you tell us your gcc version and configuration options?
src: improve MSVC C4701 warning fix
src: improve MSVC C4701 warning fix
src: improve MSVC C4701 warning fix
src: improve MSVC C4701 warning fix