From 4a8b53d2695cd088d7de2937ec8407c5cd0ba870 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Wed, 31 Jul 2019 15:18:53 +0300 Subject: Fix some compiler warnings for Win32/mingw64 build (#15903) * [mono] Fix unused variable warning in mono_config_parse(). * [ligc] Fix strict prototype warning for Win32 build. * Add some casts. --- include/gc.h | 2 +- os_dep.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/gc.h b/include/gc.h index 960481db..a31b7071 100644 --- a/include/gc.h +++ b/include/gc.h @@ -1106,7 +1106,7 @@ extern "C" { || defined(_WIN32) && !defined(__CYGWIN32__) && !defined(__CYGWIN__)) /* win32S may not free all resources on process exit. */ /* This explicitly deallocates the heap. */ - GC_API void GC_win32_free_heap (); + GC_API void GC_win32_free_heap (void); #endif #ifdef __cplusplus diff --git a/os_dep.c b/os_dep.c index dca79850..2c4e3a8e 100644 --- a/os_dep.c +++ b/os_dep.c @@ -1884,7 +1884,7 @@ word bytes; return(result); } -void GC_win32_free_heap () +void GC_win32_free_heap (void) { if (GC_no_win32_dlls) { while (GC_n_heap_bases > 0) { -- cgit v1.2.1