From 25c4a56bcb96175a3cc5027496bcd50c41d02a9b Mon Sep 17 00:00:00 2001 From: Gonzalo Paniagua Javier Date: Tue, 15 Feb 2011 19:58:08 -0500 Subject: [PATCH] Remove a bunch of warnings. --- include/private/gc_priv.h | 18 +++++++++--------- include/private/gcconfig.h | 2 +- include/private/pthread_support.h | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/include/private/gc_priv.h b/include/private/gc_priv.h index 5c4c5146..fea9510c 100644 --- a/include/private/gc_priv.h +++ b/include/private/gc_priv.h @@ -423,8 +423,8 @@ void GC_print_callers GC_PROTO((struct callinfo info[NFRAMES])); # else # if defined(GC_SOLARIS_THREADS) || defined(GC_WIN32_THREADS) \ || defined(GC_PTHREADS) - void GC_stop_world(); - void GC_start_world(); + void GC_stop_world(void); + void GC_start_world(void); # define STOP_WORLD() GC_stop_world() # define START_WORLD() GC_start_world() # else @@ -1840,7 +1840,7 @@ void GC_dump GC_PROTO((void)); # ifdef __DMC__ GC_API void GC_noop(...); # else - GC_API void GC_noop(); + GC_API void GC_noop(void); # endif # endif @@ -1929,17 +1929,17 @@ void GC_err_puts GC_PROTO((GC_CONST char *s)); /* GC_notify_all_builder() is called when GC_fl_builder_count */ /* reaches 0. */ - extern void GC_acquire_mark_lock(); - extern void GC_release_mark_lock(); - extern void GC_notify_all_builder(); + extern void GC_acquire_mark_lock(void); + extern void GC_release_mark_lock(void); + extern void GC_notify_all_builder(void); /* extern void GC_wait_builder(); */ - extern void GC_wait_for_reclaim(); + extern void GC_wait_for_reclaim(void); extern word GC_fl_builder_count; /* Protected by mark lock. */ # endif /* PARALLEL_MARK || THREAD_LOCAL_ALLOC */ # ifdef PARALLEL_MARK - extern void GC_notify_all_marker(); - extern void GC_wait_marker(); + extern void GC_notify_all_marker(void); + extern void GC_wait_marker(void); extern word GC_mark_no; /* Protected by mark lock. */ extern void GC_help_marker(word my_mark_no); diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h index 8276079d..9cbe9f44 100644 --- a/include/private/gcconfig.h +++ b/include/private/gcconfig.h @@ -2480,7 +2480,7 @@ extern void *ps3_get_mem (size_t size); # define GET_MEM(bytes) (struct hblk*) ps3_get_mem (bytes) # else - extern ptr_t GC_unix_get_mem(); + extern ptr_t GC_unix_get_mem(void); # define GET_MEM(bytes) (struct hblk *)GC_unix_get_mem(bytes) #endif # endif diff --git a/include/private/pthread_support.h b/include/private/pthread_support.h index dbd6dbcd..076a6d26 100644 --- a/include/private/pthread_support.h +++ b/include/private/pthread_support.h @@ -102,7 +102,7 @@ GC_thread GC_lookup_thread(pthread_t id); void GC_thread_deregister_foreign (void *data); -void GC_stop_init(); +void GC_stop_init(void); extern GC_bool GC_in_thread_creation; /* We may currently be in thread creation or destruction. */ -- 2.50.0