Revision 89eb4d8d25722a0a0194cf7fa47ba602e32a6da7 authored by Vitaly Kuznetsov on 19 August 2019, 14:44:09 UTC, committed by Sasha Levin on 20 August 2019, 15:29:53 UTC
When building hv_kvp_daemon GCC-8.3 complains:

hv_kvp_daemon.c: In function ‘kvp_get_ip_info.constprop’:
hv_kvp_daemon.c:812:30: warning: ‘ip_buffer’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  struct hv_kvp_ipaddr_value *ip_buffer;

this seems to be a false positive: we only use ip_buffer when
op == KVP_OP_GET_IP_INFO and it is only unset when op == KVP_OP_ENUMERATE.

Silence the warning by initializing ip_buffer to NULL.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent d09bc83
History
File Mode Size
Kconfig -rw-r--r-- 516 bytes
Makefile -rw-r--r-- 378 bytes
ast.c -rw-r--r-- 8.1 KB
ast.h -rw-r--r-- 1.1 KB
config.c -rw-r--r-- 21.5 KB
config.h -rw-r--r-- 1.3 KB
debug_fs.c -rw-r--r-- 18.1 KB
dir.c -rw-r--r-- 7.3 KB
dir.h -rw-r--r-- 889 bytes
dlm_internal.h -rw-r--r-- 19.9 KB
lock.c -rw-r--r-- 157.4 KB
lock.h -rw-r--r-- 2.9 KB
lockspace.c -rw-r--r-- 20.4 KB
lockspace.h -rw-r--r-- 902 bytes
lowcomms.c -rw-r--r-- 43.6 KB
lowcomms.h -rw-r--r-- 973 bytes
lvb_table.h -rw-r--r-- 541 bytes
main.c -rw-r--r-- 1.8 KB
member.c -rw-r--r-- 16.1 KB
member.h -rw-r--r-- 1.3 KB
memory.c -rw-r--r-- 1.9 KB
memory.h -rw-r--r-- 904 bytes
midcomms.c -rw-r--r-- 3.6 KB
midcomms.h -rw-r--r-- 718 bytes
netlink.c -rw-r--r-- 2.8 KB
plock.c -rw-r--r-- 11.5 KB
rcom.c -rw-r--r-- 15.5 KB
rcom.h -rw-r--r-- 987 bytes
recover.c -rw-r--r-- 22.8 KB
recover.h -rw-r--r-- 1.3 KB
recoverd.c -rw-r--r-- 8.1 KB
recoverd.h -rw-r--r-- 781 bytes
requestqueue.c -rw-r--r-- 4.7 KB
requestqueue.h -rw-r--r-- 736 bytes
user.c -rw-r--r-- 24.5 KB
user.h -rw-r--r-- 440 bytes
util.c -rw-r--r-- 4.4 KB
util.h -rw-r--r-- 659 bytes

back to top