summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolay Sivov <nsivov@codeweavers.com>2019-07-31 15:18:53 +0300
committerIvan Maidanski <ivmai@mail.ru>2019-10-07 08:02:12 +0300
commit4a8b53d2695cd088d7de2937ec8407c5cd0ba870 (patch)
tree896b45a6029ce753939ceeed3049a23e01f7745e
parentc79e42c79524e568907f1ba4525fa1efd62db1d9 (diff)
downloadbdwgc-mono_libgc.tar.gz
Fix some compiler warnings for Win32/mingw64 build (#15903)mono_libgc
* [mono] Fix unused variable warning in mono_config_parse(). * [ligc] Fix strict prototype warning for Win32 build. * Add some casts.
-rw-r--r--include/gc.h2
-rw-r--r--os_dep.c2
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) {