From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5239 invoked by alias); 1 Dec 2008 15:24:34 -0000 Received: (qmail 5224 invoked by uid 22791); 1 Dec 2008 15:24:33 -0000 X-Spam-Check-By: sourceware.org Received: from mail.oarcorp.com (HELO OARmail.OARCORP.com) (216.186.189.5) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 01 Dec 2008 15:23:47 +0000 Received: from [192.168.1.3] (192.168.1.3) by OARmail.OARCORP.com (192.168.2.2) with Microsoft SMTP Server (TLS) id 8.1.311.2; Mon, 1 Dec 2008 09:19:48 -0600 Message-ID: <4934017F.7060504@oarcorp.com> Date: Mon, 01 Dec 2008 15:24:00 -0000 From: Joel Sherrill User-Agent: Thunderbird 2.0.0.18 (X11/20081119) MIME-Version: 1.0 To: "gdb-patches@sourceware.org" Subject: remove warning in h8sim Content-Type: multipart/mixed; boundary="------------040904070907040903080705" Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-12/txt/msg00004.txt.bz2 --------------040904070907040903080705 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Content-length: 443 Hi, Minor patch to add const to a couple of pointer declarations and remove warnings. OK to commit? 2008-12-01 Joel Sherrill * 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 --------------040904070907040903080705 Content-Type: text/x-patch; name="h8.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="h8.diff" Content-length: 722 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; --------------040904070907040903080705--