mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
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:
parent
87c717eaba
commit
12745b6fde
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue