mirror of https://gerrit.osmocom.org/libosmocore
Fix compilation warning on deprecated macro
A warning was printed even if the deprecation didn't apply to libosmocore because it is still allowed to use it internally. This patch fixes this case while still printing a warning if external projects build using libosmocore headers. Change-Id: I32212f20756f828af1017482a71e29e4b3adbad4changes/48/2948/1
parent
c2afe81d85
commit
69dfe5aeec
|
@ -235,6 +235,9 @@ then
|
|||
CPPFLAGS+=" -fsanitize=address -fsanitize=undefined"
|
||||
fi
|
||||
|
||||
CFLAGS+=" -DBUILDING_LIBOSMOCORE"
|
||||
CPPFLAGS+=" -DBUILDING_LIBOSMOCORE"
|
||||
|
||||
AC_ARG_ENABLE(simd,
|
||||
[AS_HELP_STRING(
|
||||
[--disable-simd],
|
||||
|
|
|
@ -41,6 +41,12 @@
|
|||
# define OSMO_DEPRECATED(text)
|
||||
#endif
|
||||
|
||||
#if BUILDING_LIBOSMOCORE
|
||||
# define OSMO_DEPRECATED_OUTSIDE_LIBOSMOCORE
|
||||
#else
|
||||
# define OSMO_DEPRECATED_OUTSIDE_LIBOSMOCORE OSMO_DEPRECATED("For internal use inside libosmocore only.")
|
||||
#endif
|
||||
|
||||
#undef _OSMO_HAS_ATTRIBUTE_DEPRECATED_WITH_MESSAGE
|
||||
#undef _OSMO_HAS_ATTRIBUTE_DEPRECATED
|
||||
|
||||
|
|
|
@ -332,8 +332,8 @@ void log_add_target(struct log_target *target);
|
|||
void log_del_target(struct log_target *target);
|
||||
|
||||
/* Generate command string for VTY use */
|
||||
const char *log_vty_command_string() OSMO_DEPRECATED("For internal use inside libosmocore only.");
|
||||
const char *log_vty_command_description() OSMO_DEPRECATED("For internal use inside libosmocore only.");
|
||||
const char *log_vty_command_string() OSMO_DEPRECATED_OUTSIDE_LIBOSMOCORE;
|
||||
const char *log_vty_command_description() OSMO_DEPRECATED_OUTSIDE_LIBOSMOCORE;
|
||||
|
||||
struct log_target *log_target_find(int type, const char *fname);
|
||||
extern struct llist_head osmo_log_target_list;
|
||||
|
|
Loading…
Reference in New Issue