]> granicus.if.org Git - gc/commit
Eliminate Clang warning for GC_pthread_exit attribute
authorIvan Maidanski <ivmai@mail.ru>
Sun, 9 Sep 2012 08:57:38 +0000 (12:57 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 9 Sep 2012 09:00:49 +0000 (13:00 +0400)
commit347e5ff7cae8f4d27e6a3b0f4ab7fc84854b29bb
tree423b7520a5df066520719c15df8107948bfc081d
parent3e9fa7e2e86241629781fa595eeb215177b263a9
Eliminate Clang warning for GC_pthread_exit attribute

* include/gc_pthread_redirects.h (GC_PTHREAD_EXIT_DECLARED): Test and
define new macro (only if GC_PTHREAD_EXIT_ATTRIBUTE) to prevent Clang
warning "attribute declaration must precede definition" for
GC_pthread_exit when this header included from extra/gc.c tail.
include/gc_pthread_redirects.h