diff options
author | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2011-02-16 03:58:08 +0300 |
---|---|---|
committer | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2011-02-16 03:58:26 +0300 |
commit | 59fcb4f8d3636af1844a79c5bb4771da2c984fe9 (patch) | |
tree | 9984aa2fd43e3fb5cf18d78394b77f44def9826c /libgc/include | |
parent | 2c9f304f50cd3559a311215eb148ed0c0db182d7 (diff) |
Remove a bunch of warnings.
Diffstat (limited to 'libgc/include')
-rw-r--r-- | libgc/include/private/gc_priv.h | 18 | ||||
-rw-r--r-- | libgc/include/private/gcconfig.h | 2 | ||||
-rw-r--r-- | libgc/include/private/pthread_support.h | 2 |
3 files changed, 11 insertions, 11 deletions
diff --git a/libgc/include/private/gc_priv.h b/libgc/include/private/gc_priv.h index 5c4c5146ba2..fea9510ccf1 100644 --- a/libgc/include/private/gc_priv.h +++ b/libgc/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/libgc/include/private/gcconfig.h b/libgc/include/private/gcconfig.h index 8276079d91e..9cbe9f44536 100644 --- a/libgc/include/private/gcconfig.h +++ b/libgc/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/libgc/include/private/pthread_support.h b/libgc/include/private/pthread_support.h index dbd6dbcde89..076a6d26ff9 100644 --- a/libgc/include/private/pthread_support.h +++ b/libgc/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. */ |