This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] m2-lang.c/evaluate_subexp_modula2: discard unused value


checked in.

2011-02-28  Michael Snyder  <msnyder@vmware.com>

	* m2-lang.c (evaluate_subexp_modula2): Discard unused variable.

Index: m2-lang.c
===================================================================
RCS file: /cvs/src/src/gdb/m2-lang.c,v
retrieving revision 1.59
diff -u -p -u -p -r1.59 m2-lang.c
--- m2-lang.c	9 Jan 2011 03:20:33 -0000	1.59
+++ m2-lang.c	28 Feb 2011 22:53:07 -0000
@@ -255,7 +255,7 @@ evaluate_subexp_modula2 (struct type *ex
 	  if (value_type (arg1) != type)
 	    arg1 = value_cast (type, arg1);
 
-	  type = check_typedef (value_type (arg1));
+	  check_typedef (value_type (arg1));
 	  return value_ind (value_ptradd (arg1, value_as_long (arg2)));
 	}
       else

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]