Don't export functions that use id if we're not in Objective-C mode. I'm not entirely sure what this gs_consume stuff does, since it's not documented, but it looks a lot like it might be nonsense - it's almost certainly broken in ARC mode, where this static inline function will be emitted as objc_release() and will free the object.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33652 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Chisnall 2011-07-27 18:03:22 +00:00
parent 87c717eaba
commit 12745b6fde

View file

@ -268,7 +268,7 @@
# endif
#endif
#ifdef __clang__
#if defined(__clang__) && defined(__OBJC__)
static inline void gs_consumed(id NS_CONSUMED o) __attribute__ ((unused));
static inline void gs_consumed(id NS_CONSUMED o) { return; }
#define GS_CONSUMED(O) gs_consumed(O);