summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-06-22 13:22:40 +0200
committerThomas Haller <thaller@redhat.com>2020-06-22 13:24:43 +0200
commit8a13b02d9642c4f8208c6ee0078a28d6127d84d4 (patch)
tree5097a67977c7f7fd4afe27b65e5b2d49ee6eb25c
parent62263e706fb7e3ac9ab628af60e4f52faf67a2ea (diff)
downloadNetworkManager-8a13b02d9642c4f8208c6ee0078a28d6127d84d4.tar.gz
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.
-rw-r--r--libnm-core/nm-core-types.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/libnm-core/nm-core-types.h b/libnm-core/nm-core-types.h
index ce59ec036e..0237e67625 100644
--- a/libnm-core/nm-core-types.h
+++ b/libnm-core/nm-core-types.h
@@ -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__ */