devices,platform: fix build with gcc

Warnings about missing initializers.
This commit is contained in:
Lubomir Rintel
2015-07-01 16:35:52 +02:00
parent 4ffd57f83d
commit 295c9818b0
2 changed files with 3 additions and 3 deletions

View File

@@ -6670,8 +6670,8 @@ static gboolean
spawn_ping (NMDevice *self) spawn_ping (NMDevice *self)
{ {
NMDevicePrivate *priv = NM_DEVICE_GET_PRIVATE (self); NMDevicePrivate *priv = NM_DEVICE_GET_PRIVATE (self);
gs_free char *str_timeout; gs_free char *str_timeout = NULL;
gs_free char *tmp_str; gs_free char *tmp_str = NULL;
const char *args[] = { priv->gw_ping.binary, "-I", nm_device_get_ip_iface (self), const char *args[] = { priv->gw_ping.binary, "-I", nm_device_get_ip_iface (self),
"-c", "1", "-w", NULL, priv->gw_ping.address, NULL }; "-c", "1", "-w", NULL, priv->gw_ping.address, NULL };
gs_free_error GError *error = NULL; gs_free_error GError *error = NULL;

View File

@@ -993,7 +993,7 @@ _nmp_vt_cmd_plobj_init_from_nl_link (NMPlatform *platform, NMPlatformObject *_ob
const char *kind; const char *kind;
gboolean completed_from_cache_val = FALSE; gboolean completed_from_cache_val = FALSE;
gboolean *completed_from_cache = complete_from_cache ? &completed_from_cache_val : NULL; 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); nm_assert (memcmp (obj, ((char [sizeof (NMPObjectLink)]) { 0 }), sizeof (NMPObjectLink)) == 0);