mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-15 06:50:35 +01: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.
(cherry picked from commit 8a13b02d96)
This commit is contained in:
parent
6ae1f0e459
commit
1d1098f638
1 changed files with 0 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue