summaryrefslogtreecommitdiff
path: root/shared
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-01-24 06:11:57 +0100
committerThomas Haller <thaller@redhat.com>2018-01-24 06:14:34 +0100
commitc93827e404ffd48ba7011a4625bf640d90afaa6a (patch)
tree93ef6ad3d19ce5cabe44be4e1d0dad57fa5fec7c /shared
parentaed6e28461955ac0428bd1b61e27247eb6b986a7 (diff)
downloadNetworkManager-c93827e404ffd48ba7011a4625bf640d90afaa6a.tar.gz
wifi/iwd: fix compiler warning about uninitialized variable with cleanup attribute
Must always initialize cleanup variable, to be able to build with "-fexceptions". make[2]: Entering directory './contrib/fedora/rpm/NetworkManager.20180124-060444.C5tHCi/BUILD/NetworkManager-1.11.1' CC src/devices/wifi/src_devices_wifi_libnm_device_plugin_wifi_la-nm-device-iwd.lo In file included from ./shared/nm-utils/nm-glib.h:27:0, from ./shared/nm-utils/nm-macros-internal.h:60, from ./shared/nm-default.h:257, from src/devices/wifi/nm-device-iwd.c:21: src/devices/wifi/nm-device-iwd.c: In function ‘deactivate_async_finish’: ./shared/nm-utils/gsystem-local-alloc.h:37:8: error: ‘variant’ may be used uninitialized in this function [-Werror=maybe-uninitialized] if (*(Type*)v) \ ^ src/devices/wifi/nm-device-iwd.c:405:29: note: ‘variant’ was declared here gs_unref_variant GVariant *variant; ^~~~~~~ Fixes: d0c1e1a62a7140c4d5550053b0a4fe76b984b0ae
Diffstat (limited to 'shared')
0 files changed, 0 insertions, 0 deletions