From: Zoltan Varga Date: Fri, 1 Jun 2012 11:58:33 +0000 (+0200) Subject: Fix warnings. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bc43ad10a3896e94d0d90ea4713877ca41eb72c4;p=gc Fix warnings. --- diff --git a/include/private/gc_priv.h b/include/private/gc_priv.h index da49c0a4..e0a93312 100644 --- a/include/private/gc_priv.h +++ b/include/private/gc_priv.h @@ -403,9 +403,9 @@ void GC_print_callers GC_PROTO((struct callinfo info[NFRAMES])); # define ENABLE_SIGNALS() # else # define DISABLE_SIGNALS() GC_disable_signals() - void GC_disable_signals(); + void GC_disable_signals(void); # define ENABLE_SIGNALS() GC_enable_signals() - void GC_enable_signals(); + void GC_enable_signals(void); # endif # endif diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h index 4f7a080e..da15e905 100644 --- a/include/private/gcconfig.h +++ b/include/private/gcconfig.h @@ -326,7 +326,9 @@ # define DATASTART ((ptr_t) get_etext()) # define DATAEND ((ptr_t) get_end()) # define STACKBOTTOM ((ptr_t) pthread_get_stackaddr_np(pthread_self())) +#ifndef USE_MMAP # define USE_MMAP +#endif # define USE_MMAP_ANON # define USE_ASM_PUSH_REGS /* This is potentially buggy. It needs more testing. See the comments in