From 87b51439c1ba16e50e5a58d277d8de12d7109145 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Thu, 7 Nov 2019 22:15:13 +0700 Subject: core/defs.h: introduce and use OSMO_DEPRECATED_OUTSIDE The new OSMO_DEPRECATED_OUTSIDE macro is similar to the existing OSMO_DEPRECATED_OUTSIDE_LIBOSMOCORE, but allows to override the deprecation message. Let's use it to suspend deprecation warnings related to: - gsm48_decode_bcd_number(), - osmo_ecu_fr_conceal(), - osmo_ecu_fr_reset(), as they're intentionally used in scope of the library. Change-Id: I1b0eff1396776900c1286e41da3aee3ff78b326e --- include/osmocom/core/defs.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/osmocom/core/defs.h') diff --git a/include/osmocom/core/defs.h b/include/osmocom/core/defs.h index 5e5aa90f..33ffb7bb 100644 --- a/include/osmocom/core/defs.h +++ b/include/osmocom/core/defs.h @@ -43,8 +43,10 @@ #if BUILDING_LIBOSMOCORE # define OSMO_DEPRECATED_OUTSIDE_LIBOSMOCORE +# define OSMO_DEPRECATED_OUTSIDE(text) #else # define OSMO_DEPRECATED_OUTSIDE_LIBOSMOCORE OSMO_DEPRECATED("For internal use inside libosmocore only.") +# define OSMO_DEPRECATED_OUTSIDE(text) OSMO_DEPRECATED(text) #endif #undef _OSMO_HAS_ATTRIBUTE_DEPRECATED_WITH_MESSAGE -- cgit v1.2.3