[wasm] Silence more warnings in the wasm runtime build (#48141)
authorLarry Ewing <lewing@microsoft.com>
Thu, 11 Feb 2021 07:08:33 +0000 (01:08 -0600)
committerGitHub <noreply@github.com>
Thu, 11 Feb 2021 07:08:33 +0000 (08:08 +0100)
src/mono/CMakeLists.txt
src/mono/mono/mini/mini.c

index ee6f857..cf828d4 100644 (file)
@@ -693,6 +693,10 @@ if(TARGET_IOS OR TARGET_ANDROID)
 else()
   set(DISABLE_DLLMAP 1)
 endif()
+if (TARGET_BROWSER)
+  # sys/errno.h exists, but just emits a warning and includes errno.h
+  unset(HAVE_SYS_ERRNO_H)
+endif()
 ### End of OS specific checks
 
 add_subdirectory(mono)
index 2c5525b..1a13f08 100644 (file)
@@ -90,13 +90,13 @@ gboolean mono_using_xdebug;
 /* Counters */
 static guint32 discarded_code;
 static gint64 discarded_jit_time;
-static guint32 jinfo_try_holes_size;
 
 #define mono_jit_lock() mono_os_mutex_lock (&jit_mutex)
 #define mono_jit_unlock() mono_os_mutex_unlock (&jit_mutex)
 static mono_mutex_t jit_mutex;
 
 #ifndef DISABLE_JIT
+static guint32 jinfo_try_holes_size;
 static MonoBackend *current_backend;
 
 gpointer