[PATCH 1/2] core: Support clang with OSME_DEPRECATED

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Holger Hans Peter Freyther holger at freyther.de
Wed Aug 14 18:24:18 UTC 2013


On Wed, Aug 14, 2013 at 06:13:45PM +0200, Jacob Erlbeck wrote:
> Separate feature checking from implementation. Supported are clang and
> +# define _OSMO_HAS_ATTRIBUTE_DEPRECATED_WITH_MESSAGE OSMO_GNUC_PREREQ(4,5)

> +#if defined(_OSMO_HAS_ATTRIBUTE_DEPRECATED_WITH_MESSAGE)

we both got it wrong. it needs to be #if _OSMO_HAS_ATTRIBUTE_DEPRECATED_WITH_MESSAGE > 0
because we unconditionally define these two for gcc and clang. :}






More information about the OpenBSC mailing list