Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/libgc
diff options
context:
space:
mode:
authorNikolay Sivov <nsivov@codeweavers.com>2019-07-31 15:18:53 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2019-07-31 15:18:53 +0300
commitc8fd75734b7f34ed42968bf7ed9b315303b31abc (patch)
tree693d73144dea377ba62f5248c28c4198a8a18ab6 /libgc
parentbed4c00e02400bc49431af8b8095c76caea71220 (diff)
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.
Diffstat (limited to 'libgc')
-rw-r--r--libgc/include/gc.h2
-rw-r--r--libgc/os_dep.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libgc/include/gc.h b/libgc/include/gc.h
index 960481db876..a31b7071843 100644
--- a/libgc/include/gc.h
+++ b/libgc/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/libgc/os_dep.c b/libgc/os_dep.c
index dca79850754..2c4e3a8ef76 100644
--- a/libgc/os_dep.c
+++ b/libgc/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) {