From 2f68acaa38da8de98f66e677306b7645e83159ef Mon Sep 17 00:00:00 2001 From: ivmai Date: Thu, 4 Nov 2010 17:27:33 +0000 Subject: [PATCH] 2010-11-04 Ivan Maidanski * tests/staticrootstest.c: Include string.h for memset() prototype. * tests/thread_leak_test.c (main): Fix printf() format specifiers. --- ChangeLog | 5 +++++ tests/staticrootstest.c | 1 + tests/thread_leak_test.c | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2dbff978..4415ad59 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-11-04 Ivan Maidanski + + * tests/staticrootstest.c: Include string.h for memset() prototype. + * tests/thread_leak_test.c (main): Fix printf() format specifiers. + 2010-10-22 Ivan Maidanski * CMakeLists.txt: Check enable_parallel_mark on Darwin. diff --git a/tests/staticrootstest.c b/tests/staticrootstest.c index b8031c8e..1f63fa24 100644 --- a/tests/staticrootstest.c +++ b/tests/staticrootstest.c @@ -1,5 +1,6 @@ #include +#include #ifndef GC_DEBUG # define GC_DEBUG diff --git a/tests/thread_leak_test.c b/tests/thread_leak_test.c index 57a22bb4..df363a50 100644 --- a/tests/thread_leak_test.c +++ b/tests/thread_leak_test.c @@ -34,7 +34,7 @@ int main(void) { } for (i = 0; i < NTHREADS; ++i) { if ((code = pthread_join(t[i], 0)) != 0) { - printf("Thread join failed %lu\n", code); + printf("Thread join failed %d\n", code); } } CHECK_LEAKS(); -- 2.40.0