Skip to content

Commit df719dd

Browse files
authored
[wasm] Silence more warnings in the wasm runtime build (#48141)
1 parent b74171a commit df719dd

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/mono/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,10 @@ if(TARGET_IOS OR TARGET_ANDROID)
693693
else()
694694
set(DISABLE_DLLMAP 1)
695695
endif()
696+
if (TARGET_BROWSER)
697+
# sys/errno.h exists, but just emits a warning and includes errno.h
698+
unset(HAVE_SYS_ERRNO_H)
699+
endif()
696700
### End of OS specific checks
697701

698702
add_subdirectory(mono)

src/mono/mono/mini/mini.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@ gboolean mono_using_xdebug;
9090
/* Counters */
9191
static guint32 discarded_code;
9292
static gint64 discarded_jit_time;
93-
static guint32 jinfo_try_holes_size;
9493

9594
#define mono_jit_lock() mono_os_mutex_lock (&jit_mutex)
9695
#define mono_jit_unlock() mono_os_mutex_unlock (&jit_mutex)
9796
static mono_mutex_t jit_mutex;
9897

9998
#ifndef DISABLE_JIT
99+
static guint32 jinfo_try_holes_size;
100100
static MonoBackend *current_backend;
101101

102102
gpointer

0 commit comments

Comments
 (0)