Browse Source
Thanks clang! Here's the error: ommon/wireaddr.c:359:14: error: variable 'addr' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] } else if (addrinfo->ai_family == AF_INET6) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common/wireaddr.c:364:25: note: uninitialized use occurs here tal_arr_expand(addrs, addr); ^~~~ ./common/utils.h:27:16: note: expanded from macro 'tal_arr_expand' (*(p))[n] = (s); \ ^ common/wireaddr.c:359:10: note: remove the 'if' if its condition is always true } else if (addrinfo->ai_family == AF_INET6) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common/wireaddr.c:354:3: note: variable 'addr' is declared here struct wireaddr addr; ^ Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>travis-debug
Rusty Russell
5 years ago
1 changed files with 3 additions and 1 deletions
Loading…
Reference in new issue