From e66afe476e21be67a3e7165fbeb548d13b5b8991 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Thu, 13 May 2010 00:45:35 +0200 Subject: 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/tests/leak_test.c | 3 ++- boehm-gc/tests/thread_leak_test.c | 3 ++- boehm-gc/tests/trace_test.c | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'boehm-gc/tests') diff --git a/boehm-gc/tests/leak_test.c b/boehm-gc/tests/leak_test.c index 421d0c6..bf563ac 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 1174705..eb4cb9b 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 870e387..b84d53e 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; } -- cgit v1.1