This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
remove warning in h8sim
- From: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- To: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Mon, 1 Dec 2008 09:23:43 -0600
- Subject: remove warning in h8sim
Hi,
Minor patch to add const to a couple of pointer
declarations and remove warnings.
OK to commit?
2008-12-01 Joel Sherrill <joel.sherrill@oarcorp.com>
* compile.c: Add const to remove warning.
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
Index: compile.c
===================================================================
RCS file: /cvs/src/src/sim/h8300/compile.c,v
retrieving revision 1.44
diff -u -r1.44 compile.c
--- compile.c 3 Jul 2007 17:19:38 -0000 1.44
+++ compile.c 1 Dec 2008 15:22:09 -0000
@@ -599,7 +599,7 @@
/* Find the exact opcode/arg combo. */
for (q = h8_opcodes; q->name; q++)
{
- op_type *nib = q->data.nib;
+ const op_type *nib = q->data.nib;
unsigned int len = 0;
if ((q->available == AV_H8SX && !h8300sxmode) ||
@@ -924,7 +924,7 @@
#endif
/* Fill in the args. */
{
- op_type *args = q->args.nib;
+ const op_type *args = q->args.nib;
int hadone = 0;
int nargs;