From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31104 invoked by alias); 2 Nov 2005 05:55:27 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 31096 invoked by uid 22791); 2 Nov 2005 05:55:25 -0000 Received: from s142-179-108-108.bc.hsia.telus.net (HELO takamaka.act-europe.fr) (142.179.108.108) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 02 Nov 2005 05:55:25 +0000 Received: by takamaka.act-europe.fr (Postfix, from userid 507) id 9D5DA47E6B; Tue, 1 Nov 2005 21:55:23 -0800 (PST) Date: Wed, 02 Nov 2005 06:06:00 -0000 From: Joel Brobecker To: gdb-patches@sources.redhat.com Subject: [COMMIT] Fix warning in event-top.c Message-ID: <20051102055523.GD974@adacore.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="IS0zKkzwUGydFO0o" Content-Disposition: inline User-Agent: Mutt/1.4i X-SW-Source: 2005-11/txt/msg00029.txt.bz2 --IS0zKkzwUGydFO0o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 789 Currently running gdb_mbuild pretty much for the first time, and disovering lots of builds failures, mostly because of -Werror. Here is a fix the one warning in one of the core files. I think the other ones are in target dependent files. 2005-11-02 Joel Brobecker * event-top.c (gdb_setup_readline): Add missing type in extern declaration. Fixes the following compiler warning: event-top.c: In function `gdb_setup_readline': event-top.c:1113: warning: type defaults to `int' in declaration of `batch_silent' Here is where the variable is defined: main.c:int batch_silent = 0; Tested on x86-linux, no regression in the testsuite. I'm committing this under the obvious fix rule. I think it's pretty obvious. -- Joel --IS0zKkzwUGydFO0o Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="event-top.c.diff" Content-length: 590 Index: event-top.c =================================================================== RCS file: /cvs/src/src/gdb/event-top.c,v retrieving revision 1.41 diff -u -p -r1.41 event-top.c --- event-top.c 1 Nov 2005 11:09:18 -0000 1.41 +++ event-top.c 2 Nov 2005 05:43:44 -0000 @@ -1110,7 +1110,7 @@ gdb_setup_readline (void) that the sync setup is ALL done in gdb_init, and we would only mess it up here. The sync stuff should really go away over time. */ - extern batch_silent; + extern int batch_silent; if (!batch_silent) gdb_stdout = stdio_fileopen (stdout); --IS0zKkzwUGydFO0o--