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
This commit is contained in:
Aleksander Morgado
2019-10-24 14:18:56 +02:00
parent cc7fd0ad23
commit e5ac843a7c

View File

@@ -22,8 +22,6 @@
#include <ModemManager-enums.h>
#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;