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
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 2.3 KB |
Makefile | -rw-r--r-- | 414 bytes |
cache.c | -rw-r--r-- | 10.6 KB |
cookie.c | -rw-r--r-- | 25.2 KB |
fsdef.c | -rw-r--r-- | 2.9 KB |
histogram.c | -rw-r--r-- | 2.2 KB |
internal.h | -rw-r--r-- | 13.5 KB |
main.c | -rw-r--r-- | 4.6 KB |
netfs.c | -rw-r--r-- | 1.9 KB |
object-list.c | -rw-r--r-- | 11.2 KB |
object.c | -rw-r--r-- | 32.9 KB |
operation.c | -rw-r--r-- | 17.0 KB |
page.c | -rw-r--r-- | 33.0 KB |
proc.c | -rw-r--r-- | 1.7 KB |
stats.c | -rw-r--r-- | 9.9 KB |
Computing file changes ...