bug-gnustep
[Top][All Lists]
Advanced

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

[bug #34544] glibc related compilation failure with Clang and the non-fr


From: Quentin Mathé
Subject: [bug #34544] glibc related compilation failure with Clang and the non-fragile ABI
Date: Sat, 15 Oct 2011 09:51:24 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.10) Gecko/20100915 Ubuntu/10.04 (lucid) Firefox/3.6.10

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/




reply via email to

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