diff options
author | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-05-12 22:45:35 +0000 |
---|---|---|
committer | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-05-12 22:45:35 +0000 |
commit | db279ddb5aff6c0e4b76b6d9c323a351f9c51da1 (patch) | |
tree | ee8f8ce93d71794c0456acf255fe97f163b62b08 /boehm-gc | |
parent | f8b7e3ec43723c9f6bd4213794a33d6c57046103 (diff) | |
download | gcc-db279ddb5aff6c0e4b76b6d9c323a351f9c51da1.tar.gz |
* tests/leak_test.c (main): Declare as int. Return 0.
* tests/thread_leak_test.c (main): Ditto.
* tests/trace_test.c (main): Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159344 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'boehm-gc')
-rw-r--r-- | boehm-gc/ChangeLog | 6 | ||||
-rw-r--r-- | boehm-gc/tests/leak_test.c | 3 | ||||
-rw-r--r-- | boehm-gc/tests/thread_leak_test.c | 3 | ||||
-rw-r--r-- | 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 25266c87088..780d70f29ff 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 421d0c6cd4a..bf563ac1c16 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 1174705e45e..eb4cb9bd018 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 870e38723a8..b84d53ea967 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; } |