From 9a0709884b93ffe53b8b97a2d30ee189dcac2589 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Sat, 23 Apr 2016 09:43:12 -0400 Subject: [PATCH] lib/pthreads: less warnings on OS X MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit unknown-attributes error are thrown by the inclusion of `gc.h`. Signed-off-by: Alexis Laferrière --- lib/pthreads/pthreads.nit | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/pthreads/pthreads.nit b/lib/pthreads/pthreads.nit index a1c43a2..1db10b2 100644 --- a/lib/pthreads/pthreads.nit +++ b/lib/pthreads/pthreads.nit @@ -16,7 +16,7 @@ # Main POSIX threads support and intro the classes `Thread`, `Mutex` and `Barrier` module pthreads is - cflags "-pthread" + cflags "-pthread -Wno-unknown-attributes" ldflags "-pthread" pkgconfig "bdw-gc" new_annotation threaded @@ -33,6 +33,8 @@ in "C Header" `{ `} in "C" `{ + #include + // TODO protect with: #ifdef WITH_LIBGC // We might have to add the next line to gc_chooser.c too, especially // if we get an error like "thread not registered with GC". -- 1.7.9.5