Follow-up Comment #2, bug #34544 (project gnustep):

Thanks Richard for the workaround you added with r33993.

However there is still a small problem, I get the warning below for every
compiled .m file:

 Compiling file NSPropertyList+GNUstepBase.m ...
In file included from NSPropertyList+GNUstepBase.m:26:
.././common.h:55:9: warning: '__block' macro redefined
#define __block __gs_unistd_block
        ^
<built-in>:16:9: note: previous definition is here
#define __block __attribute__((__blocks__(byref)))

I eliminated the issue by changing common.h to undef __block first:

#ifdef HAVE_UNISTD_H
#ifdef __block
/* Turn off Clang built-in __block */
#undef __block
#endif
#define __block __gs_unistd_block
#include <unistd.h>
#undef __block
#endif

Thanks,
Quentin

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?34544>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to