libnm: allow _nm_setting_property_define_direct_strv() to be used as expression

This is so that the resulting index can be used for aliasing properties.
This commit is contained in:
Jan Vaclav 2024-02-15 13:51:40 +01:00 committed by Fernando Fernandez Mancera
parent 1bb73bd552
commit 8f9ed29e2c

View file

@ -877,8 +877,7 @@ _nm_properties_override(GArray *properties_override, const NMSettInfoProperty *p
private_struct_type, \
private_struct_field, \
... /* extra NMSettInfoProperty fields */) \
G_STMT_START \
{ \
({ \
GParamSpec *_param_spec; \
\
G_STATIC_ASSERT(!NM_FLAGS_ANY((param_flags), ~(NM_SETTING_PARAM_FUZZY_IGNORE))); \
@ -900,8 +899,7 @@ _nm_properties_override(GArray *properties_override, const NMSettInfoProperty *p
private_struct_type, \
private_struct_field), \
__VA_ARGS__); \
} \
G_STMT_END
})
/*****************************************************************************/