Skip to content

Commit

Permalink
[wasm] Fix warnings about unused variables. (dotnet#33452)
Browse files Browse the repository at this point in the history
/s/mono2/mono/mini/mini-runtime.c:2284:15: warning: unused variable 'ji'
      [-Wunused-variable]
        MonoJitInfo *ji;

Co-authored-by: jaykrell <[email protected]>
  • Loading branch information
monojenkins and jaykrell authored Mar 11, 2020
1 parent 43e593d commit abe6da1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/mono/mono/mini/mini-runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -2291,7 +2291,6 @@ mono_jit_compile_method_with_opt (MonoMethod *method, guint32 opt, gboolean jit_
MonoDomain *target_domain, *domain = mono_domain_get ();
MonoJitInfo *info;
gpointer code = NULL, p;
MonoJitInfo *ji;
MonoJitICallInfo *callinfo = NULL;
WrapperInfo *winfo = NULL;
gboolean use_interp = FALSE;
Expand Down Expand Up @@ -2476,7 +2475,7 @@ mono_jit_compile_method_with_opt (MonoMethod *method, guint32 opt, gboolean jit_
/*
* SGEN requires the JIT info for these methods to be registered, see is_ip_in_managed_allocator ().
*/
ji = mini_jit_info_table_find (mono_domain_get (), (char *)code, &d);
MonoJitInfo *ji = mini_jit_info_table_find (mono_domain_get (), (char *)code, &d);
g_assert (ji);
}
#endif
Expand Down

0 comments on commit abe6da1

Please sign in to comment.