Skip to content

Commit

Permalink
Fix some warnings on !MONO_ARCH_AOT_SUPPORTED targets.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Rønne Petersen committed Feb 19, 2014
1 parent 508e0a5 commit b1e8599
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion mono/mini/aot-compiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,7 @@ arch_init (MonoAotCompile *acfg)
#endif
}

#ifdef MONO_ARCH_AOT_SUPPORTED
/*
* arch_emit_direct_call:
*
Expand Down Expand Up @@ -724,6 +725,7 @@ arch_emit_direct_call (MonoAotCompile *acfg, const char *target, gboolean extern
g_assert_not_reached ();
#endif
}
#endif

/*
* PPC32 design:
Expand Down Expand Up @@ -840,6 +842,7 @@ arch_emit_got_access (MonoAotCompile *acfg, guint8 *code, int got_slot, int *cod

#endif

#ifdef MONO_ARCH_AOT_SUPPORTED
/*
* arch_emit_objc_selector_ref:
*
Expand Down Expand Up @@ -868,6 +871,7 @@ arch_emit_objc_selector_ref (MonoAotCompile *acfg, guint8 *code, int index, int
g_assert_not_reached ();
#endif
}
#endif

/*
* arch_emit_plt_entry:
Expand Down Expand Up @@ -4331,6 +4335,7 @@ is_direct_callable (MonoAotCompile *acfg, MonoMethod *method, MonoJumpInfo *patc
return FALSE;
}

#ifdef MONO_ARCH_AOT_SUPPORTED
static const char *
get_pinvoke_import (MonoAotCompile *acfg, MonoMethod *method)
{
Expand Down Expand Up @@ -4360,6 +4365,7 @@ get_pinvoke_import (MonoAotCompile *acfg, MonoMethod *method)

return import;
}
#endif

static gint
compare_lne (MonoDebugLineNumberEntry *a, MonoDebugLineNumberEntry *b)
Expand Down Expand Up @@ -4490,10 +4496,13 @@ emit_and_reloc_code (MonoAotCompile *acfg, MonoMethod *method, guint8 *code, gui
MonoJumpInfo *patch_info;
MonoMethodHeader *header;
MonoDebugSourceLocation **locs = NULL;
gboolean skip, direct_call, external_call;
gboolean skip;
#ifdef MONO_ARCH_AOT_SUPPORTED
gboolean direct_call, external_call;
guint32 got_slot;
const char *direct_call_target = 0;
const char *direct_pinvoke;
#endif

if (method) {
header = mono_method_get_header (method);
Expand Down

0 comments on commit b1e8599

Please sign in to comment.