From e5ac843a7c5a0d43a9c57571bc45d9cba417df00 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Thu, 24 Oct 2019 14:18:56 +0200 Subject: api,compat: fix warnings during doc build We just move the MM_DISABLE_DEPRECATED check to after the MM_DEPRECATED symbol definition, because gtkdoc-scan gets pretty confused, likely due to the symbol ending with the "_DEPRECATED" suffix. Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/issues/91 --- include/ModemManager-compat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/ModemManager-compat.h') diff --git a/include/ModemManager-compat.h b/include/ModemManager-compat.h index 540f0512..e1458400 100644 --- a/include/ModemManager-compat.h +++ b/include/ModemManager-compat.h @@ -22,8 +22,6 @@ #include -#ifndef MM_DISABLE_DEPRECATED - /** * SECTION:mm-compat * @title: API break replacements @@ -41,6 +39,8 @@ # define MM_DEPRECATED #endif +#ifndef MM_DISABLE_DEPRECATED + /* The following type exists just so that we can get deprecation warnings */ MM_DEPRECATED typedef int MMModemBandDeprecated; -- cgit v1.2.3-70-g09d2