From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26129 invoked by alias); 7 May 2012 20:23:48 -0000 Received: (qmail 26119 invoked by uid 22791); 7 May 2012 20:23:47 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from oarmail.oarcorp.com (HELO OARmail.OARCORP.com) (67.63.146.244) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 07 May 2012 20:23:35 +0000 Received: from iceland.oarcorp.com (192.168.1.171) by OARmail.OARCORP.com (192.168.2.2) with Microsoft SMTP Server (TLS) id 8.1.436.0; Mon, 7 May 2012 15:23:34 -0500 Message-ID: <4FA82F46.4080901@oarcorp.com> Date: Mon, 07 May 2012 20:23:00 -0000 From: Joel Sherrill User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.4) Gecko/20120425 Thunderbird/10.0.4 MIME-Version: 1.0 To: "gdb@sourceware.org" Subject: Microblaze simulator - Fix missing prototype Content-Type: multipart/mixed; boundary="------------040706060309000708070600" X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-05/txt/msg00026.txt.bz2 --------------040706060309000708070600 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Content-length: 581 Without this patch, this generates a missing prototype warning which is treated as an error. I don't see this routine referenced elsewhere, so there is the possibility that it also could be made static. OK to apply? 2012-05-12 Joel Sherrill * microblaze-rom.c (_initialize_picobug_rom): Add prototype. -- 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 --------------040706060309000708070600 Content-Type: text/x-patch; name="gdb-prototype.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="gdb-prototype.diff" Content-length: 561 Index: gdb/microblaze-rom.c =================================================================== RCS file: /cvs/src/src/gdb/microblaze-rom.c,v retrieving revision 1.5 diff -u -r1.5 microblaze-rom.c --- gdb/microblaze-rom.c 4 Jan 2012 08:17:06 -0000 1.5 +++ gdb/microblaze-rom.c 7 May 2012 20:15:54 -0000 @@ -25,6 +25,8 @@ #include "serial.h" #include "regcache.h" +void _initialize_picobug_rom(void); + static char *picobug_inits[] = {"\r", NULL}; @@ -174,7 +176,7 @@ } void -_initialize_picobug_rom () +_initialize_picobug_rom (void) { int i; --------------040706060309000708070600--