[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/.

Jacob Erlbeck jerlbeck at sysmocom.de
Thu Aug 15 07:39:48 UTC 2013


On 08/14/2013 08:24 PM, Holger Hans Peter Freyther wrote:
> On Wed, Aug 14, 2013 at 06:13:45PM +0200, Jacob Erlbeck wrote:
>
> > +#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. :}
>

No, it's just '#if _OSMO_HAS_FOO' since non-macro identifiers are
considered 0 (according to 'info cpp'). I've verified this with gcc and
clang. And I've installed gcc-4.4 to check stuff like this before
jenkins does.

Jacob




More information about the OpenBSC mailing list