From f0bb6ef8564aabc51e5bd14b6486bc86068364fb Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Thu, 7 Sep 2017 10:36:14 +0200 Subject: api: add MM_DISABLE_DEPRECATED guards around deprecated symbols When this symbol is defined, e.g. via CFLAGS, building a program that uses the ModemManager API will fail if the program references deprecated symbols. For now we just use it to keep gtk-doc-scan happy and avoid unnecessary warnings. --- include/ModemManager-compat.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/ModemManager-compat.h') diff --git a/include/ModemManager-compat.h b/include/ModemManager-compat.h index f0e1d938..6d65d500 100644 --- a/include/ModemManager-compat.h +++ b/include/ModemManager-compat.h @@ -24,6 +24,8 @@ #include +#ifndef MM_DISABLE_DEPRECATED + /** * SECTION:mm-compat * @title: API break replacements @@ -687,4 +689,6 @@ typedef int MMModemBandDeprecated; */ #define MM_MODEM_BAND_CDMA_BC19_US_LOWER_700 ((MMModemBandDeprecated)MM_MODEM_BAND_CDMA_BC19) +#endif /* MM_DISABLE_DEPRECATED */ + #endif /* _MODEMMANAGER_COMPAT_H_ */ -- cgit v1.2.3-70-g09d2