mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-21 10:14:41 +00:00
libnm: avoid deprecation warning about NMUtilsPredicateStr
NMUtilsPredicateStr got introduced in 1.26.0 API. However, marking the typedef to be available only in 1.26, causes a compiler warning when using the header: /usr/include/libnm/nm-setting.h:372:39: error: ‘NMUtilsPredicateStr’ is deprecated: Not available before 1.26 [-Werror=deprecated-declarations] 372 | NMUtilsPredicateStr predicate); | ^~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors Avoid that. It's not a problem in practice, because all users of the typedef are functions that are marked to be available in 1.26 themselves.
This commit is contained in:
parent
62263e706f
commit
8a13b02d96
|
@ -65,7 +65,6 @@ typedef struct _NMSettingWirelessSecurity NMSettingWirelessSecurity;
|
|||
typedef struct _NMSettingWpan NMSettingWpan;
|
||||
typedef struct _NMSimpleConnection NMSimpleConnection;
|
||||
|
||||
NM_AVAILABLE_IN_1_26
|
||||
typedef gboolean (*NMUtilsPredicateStr) (const char *str);
|
||||
|
||||
#endif /* __NM_CORE_TYPES_H__ */
|
||||
|
|
Loading…
Reference in a new issue