From 431c349b473d01351f0cc9e413405eac1bf04624 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Sun, 15 Mar 2020 15:24:55 +0100 Subject: [PATCH] libnm: enable macros for marking sync libnm methods as deprecated --- libnm-core/nm-version.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libnm-core/nm-version.h b/libnm-core/nm-version.h index e8a94db648..195fc19684 100644 --- a/libnm-core/nm-version.h +++ b/libnm-core/nm-version.h @@ -249,10 +249,11 @@ * around g_dbus_connection_call_sync(). You may call it directly * without feeling dirty. * - * We don't want to force users away from this API, for that reason the - * macro does not yet expand to G_DEPRECATED. + * The API is marked as deprecated since 1.22, however the macro only starts + * complaining in 1.24. That's intentional, because in 1.22 the asynchronous + * alternative was not yet available. */ -#define _NM_DEPRECATED_SYNC_METHOD /*NM_DEPRECATED_IN_1_22*/ -#define _NM_DEPRECATED_SYNC_WRITABLE_PROPERTY /*NM_DEPRECATED_IN_1_22*/ +#define _NM_DEPRECATED_SYNC_METHOD NM_DEPRECATED_IN_1_24 +#define _NM_DEPRECATED_SYNC_WRITABLE_PROPERTY /* NM_DEPRECATED_IN_1_22 */ #endif /* NM_VERSION_H */