From e66afe476e21be67a3e7165fbeb548d13b5b8991 Mon Sep 17 00:00:00 2001 From: Uros Bizjak <ubizjak@gmail.com> Date: Thu, 13 May 2010 00:45:35 +0200 Subject: [PATCH] leak_test.c (main): Declare as int. * tests/leak_test.c (main): Declare as int. Return 0. * tests/thread_leak_test.c (main): Ditto. * tests/trace_test.c (main): Ditto. From-SVN: r159344 --- boehm-gc/ChangeLog | 6 ++++++ boehm-gc/tests/leak_test.c | 3 ++- boehm-gc/tests/thread_leak_test.c | 3 ++- boehm-gc/tests/trace_test.c | 3 ++- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/boehm-gc/ChangeLog b/boehm-gc/ChangeLog index 25266c87088a..780d70f29ff0 100644 --- a/boehm-gc/ChangeLog +++ b/boehm-gc/ChangeLog @@ -1,3 +1,9 @@ +2010-05-13 Uros Bizjak <ubizjak@gmail.com> + + * tests/leak_test.c (main): Declare as int. Return 0. + * tests/thread_leak_test.c (main): Ditto. + * tests/trace_test.c (main): Ditto. + 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com> PR target/42811 diff --git a/boehm-gc/tests/leak_test.c b/boehm-gc/tests/leak_test.c index 421d0c6cd4a6..bf563ac1c16c 100644 --- a/boehm-gc/tests/leak_test.c +++ b/boehm-gc/tests/leak_test.c @@ -1,6 +1,6 @@ #include "leak_detector.h" -main() { +int main() { int *p[10]; int i; GC_find_leak = 1; /* for new collect versions not compiled */ @@ -18,4 +18,5 @@ main() { CHECK_LEAKS(); CHECK_LEAKS(); CHECK_LEAKS(); + return 0; } diff --git a/boehm-gc/tests/thread_leak_test.c b/boehm-gc/tests/thread_leak_test.c index 1174705e45e9..eb4cb9bd0184 100644 --- a/boehm-gc/tests/thread_leak_test.c +++ b/boehm-gc/tests/thread_leak_test.c @@ -19,7 +19,7 @@ void * test(void * arg) { #define NTHREADS 5 -main() { +int main() { int i; pthread_t t[NTHREADS]; int code; @@ -37,4 +37,5 @@ main() { CHECK_LEAKS(); CHECK_LEAKS(); CHECK_LEAKS(); + return 0; } diff --git a/boehm-gc/tests/trace_test.c b/boehm-gc/tests/trace_test.c index 870e38723a8d..b84d53ea9676 100644 --- a/boehm-gc/tests/trace_test.c +++ b/boehm-gc/tests/trace_test.c @@ -16,7 +16,7 @@ struct treenode * mktree(int i) { return r; } -main() +int main() { int i; for (i = 0; i < 10; ++i) { @@ -26,4 +26,5 @@ main() GC_generate_random_backtrace(); GC_generate_random_backtrace(); GC_generate_random_backtrace(); + return 0; } -- GitLab