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
src/tcp.c:39:14: warning: variable 'flags' is used uninitialized whenever 'if' condition is
false [-Wsometimes-uninitialized]
else if (lua_isstring(L, 1)) {
^~~~~~~~~~~~~~~~~~
src/tcp.c:49:45: note: uninitialized use occurs here
ret = uv_tcp_init_ex(ctx->loop, handle, flags);
^~~~~
src/tcp.c:39:10: note: remove the 'if' if its condition is always true
else if (lua_isstring(L, 1)) {
^~~~~~~~~~~~~~~~~~~~~~~~
src/tcp.c:35:23: note: initialize the variable 'flags' to silence this warning
unsigned int flags;
^
= 0
src/udp.c:38:14: warning: variable 'flags' is used uninitialized whenever 'if' condition is
false [-Wsometimes-uninitialized]
else if (lua_isstring(L, 1)) {
^~~~~~~~~~~~~~~~~~
src/udp.c:48:45: note: uninitialized use occurs here
ret = uv_udp_init_ex(ctx->loop, handle, flags);
^~~~~
src/udp.c:38:10: note: remove the 'if' if its condition is always true
else if (lua_isstring(L, 1)) {
^~~~~~~~~~~~~~~~~~~~~~~~
src/udp.c:34:23: note: initialize the variable 'flags' to silence this warning
unsigned int flags;
^
= 0
Compilers don't know that after luaL_argerror(), the remaining code is unreachable. But it's better to initialize the flags to zero.
The text was updated successfully, but these errors were encountered:
The issues were introduced in 4573edf.
Compilers don't know that after luaL_argerror(), the remaining code is unreachable. But it's better to initialize the flags to zero.
The text was updated successfully, but these errors were encountered: