Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Sherrill <joel.sherrill@oarcorp.com>
To: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: remove warning in h8sim
Date: Mon, 01 Dec 2008 15:24:00 -0000	[thread overview]
Message-ID: <4934017F.7060504@oarcorp.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 443 bytes --]

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



[-- Attachment #2: h8.diff --]
[-- Type: text/x-patch, Size: 722 bytes --]

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;
 

             reply	other threads:[~2008-12-01 15:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-01 15:24 Joel Sherrill [this message]
2008-12-01 16:07 ` Daniel Jacobowitz
2008-12-01 16:11   ` Joel Sherrill

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4934017F.7060504@oarcorp.com \
    --to=joel.sherrill@oarcorp.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox