This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
FYI: remove useless cast
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 25 Jul 2012 09:31:47 -0600
- Subject: FYI: remove useless cast
I'm checking this in.
This removes a useless cast from macro_bcache_str.
Tom
2012-07-25 Tom Tromey <tromey@redhat.com>
* macrotab.c (macro_bcache_str): Remove cast.
Index: macrotab.c
===================================================================
RCS file: /cvs/src/src/gdb/macrotab.c,v
retrieving revision 1.27
diff -u -r1.27 macrotab.c
--- macrotab.c 16 May 2012 20:31:09 -0000 1.27
+++ macrotab.c 25 Jul 2012 15:31:07 -0000
@@ -128,7 +128,7 @@
static const char *
macro_bcache_str (struct macro_table *t, const char *s)
{
- return (char *) macro_bcache (t, s, strlen (s) + 1);
+ return macro_bcache (t, s, strlen (s) + 1);
}