libnm: explicitly cast enum type for g_object_set()

Fixes: 687b651598
This commit is contained in:
Thomas Haller 2015-10-08 13:09:51 +02:00
parent a8af3fae57
commit 68b3790ad3

View file

@ -1254,7 +1254,7 @@ set_default_for_missing_key (NMSetting *setting, const char *property)
/* Set a value different from the default value of the property's spec */
if (NM_IS_SETTING_VLAN (setting) && !strcmp (property, NM_SETTING_VLAN_FLAGS))
g_object_set (setting, property, 0, NULL);
g_object_set (setting, property, (NMVlanFlags) 0, NULL);
}
static void