mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 21:00:10 +01:00
libnm: fix unused variables in non-debug mode in _nm_setting_class_commit()
CC src/libnm-core-impl/libnm_core_impl_la-nm-setting.lo
src/libnm-core-impl/nm-setting.c: In function '_nm_setting_class_commit':
src/libnm-core-impl/nm-setting.c:339:41: error: unused variable 'i' [-Werror=unused-variable]
339 | guint i;
| ^
src/libnm-core-impl/nm-setting.c: At top level:
src/libnm-core-impl/nm-setting.c:168:1: error: '_nm_sett_info_property_find_in_array' defined but not used [-Werror=unused-function]
168 | _nm_sett_info_property_find_in_array(const NMSettInfoProperty *properties,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Fixes: 2dd5b065a8 ('libnm: drop special casing G_TYPE_STRV from _nm_setting_class_commit()')
This commit is contained in:
parent
6c5c5a73bd
commit
cd84dae191
1 changed files with 2 additions and 2 deletions
|
|
@ -164,7 +164,7 @@ _nm_setting_slave_type_is_valid(const char *slave_type, const char **out_port_ty
|
|||
|
||||
/*****************************************************************************/
|
||||
|
||||
static const NMSettInfoProperty *
|
||||
_nm_unused static const NMSettInfoProperty *
|
||||
_nm_sett_info_property_find_in_array(const NMSettInfoProperty *properties,
|
||||
guint len,
|
||||
const char *name)
|
||||
|
|
@ -333,10 +333,10 @@ _nm_setting_class_commit(NMSettingClass *setting_class,
|
|||
#if NM_MORE_ASSERTS > 10
|
||||
gs_free GParamSpec **property_specs = NULL;
|
||||
guint n_property_specs;
|
||||
guint i;
|
||||
#endif
|
||||
NMSettInfoPropertLookupByParamSpec *lookup_by_iter;
|
||||
guint override_len;
|
||||
guint i;
|
||||
guint16 j;
|
||||
|
||||
nm_assert(NM_IS_SETTING_CLASS(setting_class));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue