]> granicus.if.org Git - gc/commit
Fix 'attribute declaration must precede definition' warning (clang-3.1)
authorIvan Maidanski <ivmai@mail.ru>
Wed, 18 Dec 2013 19:33:50 +0000 (23:33 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 2 May 2014 20:01:43 +0000 (00:01 +0400)
commit02b2997d8d74ba18359a37e79d103c0d246056e7
treec975dbe6b95b759c088b85e5859a379ba32d00a7
parent0f47af3699a1484b98285e626606894ca7f59df7
Fix 'attribute declaration must precede definition' warning (clang-3.1)

* extra/gc.c: Include gc_inline.h explicitly before including mallocx.c
(to workaround "attribute declaration must precede definition" warning
reported by clang-3.1 for GC_generic_malloc_many); define
GC_PTHREAD_REDIRECTS_ONLY before including gc_pthread_redirects.h.
* include/gc_pthread_redirects.h (GC_dlopen, GC_pthread_sigmask,
GC_PTHREAD_CREATE_CONST, GC_pthread_create, GC_pthread_join,
GC_pthread_detach, GC_pthread_cancel, GC_pthread_exit): Do not declare
if GC_PTHREAD_REDIRECTS_ONLY defined (to workaround
"attribute declaration must precede definition" warning reported by
clang-3.1).
extra/gc.c
include/gc_pthread_redirects.h