]> granicus.if.org Git - gc/commitdiff
Fix warnings.
authorZoltan Varga <vargaz@gmail.com>
Fri, 1 Jun 2012 11:58:33 +0000 (13:58 +0200)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 15 Sep 2013 08:57:30 +0000 (12:57 +0400)
include/private/gc_priv.h
include/private/gcconfig.h

index da49c0a4952432511118edb1c15d8885bf4f4eae..e0a9331292ced0e6074f23d07819ac4ce9574421 100644 (file)
@@ -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
 
index 4f7a080e999167ccce59e714f8e549f6b55a535a..da15e905c58e169fd292040949bf693ef5229e78 100644 (file)
 #    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