Permalink
Browse files

2006-10-12 Zoltan Varga <vargaz@gmail.com>

	* mini.c trace.c mini-x86.c: Remove warning workarounds after the mono_type_size ()
	signature change.

svn path=/trunk/mono/; revision=66607
  • Loading branch information...
1 parent f4136ab commit 09fb58cc3bf3e97e630e78aec726e8d9c2cdfe48 @vargaz vargaz committed Oct 12, 2006
Showing with 10 additions and 13 deletions.
  1. +4 −0 mono/mini/ChangeLog
  2. +2 −6 mono/mini/mini-x86.c
  3. +3 −6 mono/mini/mini.c
  4. +1 −1 mono/mini/trace.c
View
4 mono/mini/ChangeLog
@@ -1,3 +1,7 @@
+2006-10-12 Zoltan Varga <vargaz@gmail.com>
+
+ * mini.c trace.c mini-x86.c: Remove warning workarounds after the mono_type_size ()
+ signature change.
Tue Oct 10 11:35:20 CEST 2006 Paolo Molaro <lupus@ximian.com>
View
8 mono/mini/mini-x86.c
@@ -453,9 +453,7 @@ mono_arch_get_argument_info (MonoMethodSignature *csig, int param_count, MonoJit
if (csig->pinvoke)
size = mono_type_native_stack_size (csig->params [k], &align);
else {
- int ialign;
- size = mono_type_stack_size (csig->params [k], &ialign);
- align = ialign;
+ size = mono_type_stack_size (csig->params [k], &align);
}
/* ignore alignment for now */
@@ -984,9 +982,7 @@ mono_arch_call_opcode (MonoCompile *cfg, MonoBasicBlock* bb, MonoCallInst *call,
if (sig->pinvoke)
size = mono_type_native_stack_size (&in->klass->byval_arg, &align);
else {
- int ialign;
- size = mono_type_stack_size (&in->klass->byval_arg, &ialign);
- align = ialign;
+ size = mono_type_stack_size (&in->klass->byval_arg, &align);
}
arg->opcode = OP_OUTARG_VT;
arg->klass = in->klass;
View
9 mono/mini/mini.c
@@ -3743,7 +3743,7 @@ mono_method_to_ir (MonoCompile *cfg, MonoMethod *method, MonoBasicBlock *start_b
MonoGenericContainer *generic_container = NULL;
MonoType **param_types;
GList *bb_recheck = NULL, *tmp;
- int i, n, start_new_bblock, ialign;
+ int i, n, start_new_bblock;
int num_calls = 0, inline_costs = 0;
int breakpoint_id = 0;
guint32 align;
@@ -7310,7 +7310,7 @@ mono_method_to_ir (MonoCompile *cfg, MonoMethod *method, MonoBasicBlock *start_b
/* FIXXME: handle generics. */
if (mono_metadata_token_table (token) == MONO_TABLE_TYPESPEC) {
MonoType *type = mono_type_create_from_typespec (image, token);
- token = mono_type_size (type, &ialign);
+ token = mono_type_size (type, &align);
} else {
MonoClass *klass = mono_class_get_full (image, token, generic_context);
if (!klass)
@@ -7980,10 +7980,7 @@ mono_allocate_stack_slots_full (MonoCompile *m, gboolean backward, guint32 *stac
if (inst->backend.is_pinvoke && MONO_TYPE_ISSTRUCT (inst->inst_vtype) && inst->inst_vtype->type != MONO_TYPE_TYPEDBYREF)
size = mono_class_native_size (inst->inst_vtype->data.klass, &align);
else {
- int ialign;
-
- size = mono_type_size (inst->inst_vtype, &ialign);
- align = ialign;
+ size = mono_type_size (inst->inst_vtype, &align);
}
t = mono_type_get_underlying_type (inst->inst_vtype);
View
2 mono/mini/trace.c
@@ -550,7 +550,7 @@ mono_trace_leave_method (MonoMethod *method, ...)
goto handle_enum;
} else {
guint8 *p = va_arg (ap, gpointer);
- int j, size, align;
+ guint32 j, size, align;
size = mono_type_size (type, &align);
printf ("[");
for (j = 0; p && j < size; j++)

0 comments on commit 09fb58c

Please sign in to comment.