discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Type mismatch for _Block_copy and _Block_release when building gnustep-b


From: Lobron, David
Subject: Type mismatch for _Block_copy and _Block_release when building gnustep-base-1.24.9 with libobjc2-1.8.1
Date: Tue, 2 Jan 2018 20:53:00 +0000

Hello GNUStep,

When I try to build gnustep-base-1.24.9 with libobjc2-1.8.1, I get a type 
mismatch for _Block_copy and _Block_release:

../../Headers/GNUstepBase/GSBlocks.h:123:7: error: conflicting types for 
'_Block_copy'
void *_Block_copy(void *) __attribute__((weak));
      ^
/home/dlobron/build/clangport/akamai/common/include/objc/blocks_runtime.h:16:21:
 note: previous declaration is here
BLOCKS_EXPORT void *_Block_copy(const void *);

...

../../Headers/GNUstepBase/GSBlocks.h:124:6: error: conflicting types for 
'_Block_release'
void _Block_release(void *) __attribute__((weak));
     ^
/home/dlobron/build/clangport/akamai/common/include/objc/blocks_runtime.h:17:20:
 note: previous declaration is here
BLOCKS_EXPORT void _Block_release(const void *);

I was wondering if it's intentional that these functions are defined in both 
libraries.  Is one more correct than the other?  Should I hide one of them?

Thank you,

David


reply via email to

[Prev in Thread] Current Thread [Next in Thread]