devices,platform: fix build with gcc
Warnings about missing initializers.
This commit is contained in:
@@ -6670,8 +6670,8 @@ static gboolean
|
||||
spawn_ping (NMDevice *self)
|
||||
{
|
||||
NMDevicePrivate *priv = NM_DEVICE_GET_PRIVATE (self);
|
||||
gs_free char *str_timeout;
|
||||
gs_free char *tmp_str;
|
||||
gs_free char *str_timeout = NULL;
|
||||
gs_free char *tmp_str = NULL;
|
||||
const char *args[] = { priv->gw_ping.binary, "-I", nm_device_get_ip_iface (self),
|
||||
"-c", "1", "-w", NULL, priv->gw_ping.address, NULL };
|
||||
gs_free_error GError *error = NULL;
|
||||
|
@@ -993,7 +993,7 @@ _nmp_vt_cmd_plobj_init_from_nl_link (NMPlatform *platform, NMPlatformObject *_ob
|
||||
const char *kind;
|
||||
gboolean completed_from_cache_val = FALSE;
|
||||
gboolean *completed_from_cache = complete_from_cache ? &completed_from_cache_val : NULL;
|
||||
const NMPObject *link_cached;
|
||||
const NMPObject *link_cached = NULL;
|
||||
|
||||
nm_assert (memcmp (obj, ((char [sizeof (NMPObjectLink)]) { 0 }), sizeof (NMPObjectLink)) == 0);
|
||||
|
||||
|
Reference in New Issue
Block a user