summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2019-10-24 14:18:56 +0200
committerAleksander Morgado <aleksander@aleksander.es>2019-10-24 14:20:38 +0200
commite5ac843a7c5a0d43a9c57571bc45d9cba417df00 (patch)
tree88e6334210691a8f496e239d81ba728c5d37e47a /include
parentcc7fd0ad237ea3ffa44044e5845e000de0b8ff8f (diff)
downloadModemManager-e5ac843a7c5a0d43a9c57571bc45d9cba417df00.tar.gz
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
Diffstat (limited to 'include')
-rw-r--r--include/ModemManager-compat.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ModemManager-compat.h b/include/ModemManager-compat.h
index 540f0512a..e1458400d 100644
--- a/include/ModemManager-compat.h
+++ b/include/ModemManager-compat.h
@@ -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;