From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25677 invoked by alias); 3 Apr 2005 03:42:02 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 25647 invoked from network); 3 Apr 2005 03:41:59 -0000 Received: from unknown (HELO lakermmtao10.cox.net) (68.230.240.29) by sourceware.org with SMTP; 3 Apr 2005 03:41:59 -0000 Received: from white ([68.9.64.121]) by lakermmtao10.cox.net (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP id <20050403034157.FXWD29924.lakermmtao10.cox.net@white> for ; Sat, 2 Apr 2005 22:41:57 -0500 Received: from bob by white with local (Exim 3.35 #1 (Debian)) id 1DHwug-0001EF-00 for ; Sat, 02 Apr 2005 23:40:42 -0500 Date: Sun, 03 Apr 2005 03:42:00 -0000 From: Bob Rossi To: GDB Subject: Re: compile warnings Message-ID: <20050403044042.GC4521@white> Mail-Followup-To: GDB References: <20050403030505.GA4521@white> <20050403031654.GA25512@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050403031654.GA25512@nevyn.them.org> User-Agent: Mutt/1.3.28i X-SW-Source: 2005-04/txt/msg00022.txt.bz2 On Sat, Apr 02, 2005 at 10:16:54PM -0500, Daniel Jacobowitz wrote: > On Sat, Apr 02, 2005 at 10:05:05PM -0500, Bob Rossi wrote: > > Hi, > > > > Is this normal? This is using current CVS with > > $ gcc --version > > gcc (GCC) 3.3.5 (Debian 1:3.3.5-8) > > > > ../../src/gdb/printcmd.c: In function `printf_command': > > ../../src/gdb/printcmd.c:1962: warning: format not a string literal, argument types not checked > > ../../src/gdb/printcmd.c:1968: warning: format not a string literal, argument types not checked > > ../../src/gdb/printcmd.c:1975: warning: format not a string literal, argument types not checked > > ../../src/gdb/printcmd.c:1985: warning: format not a string literal, argument types not checked > > Yep. There's an enforced -Wno-error on that file, for this reason. gcc -c -g -I. -I../../src/gdb -I../../src/gdb/config -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I../../src/gdb/../include/opcode -I../../src/gdb/../readline/.. -I../bfd -I../../src/gdb/../bfd -I../../src/gdb/../include -I../intl -I../../src/gdb/../intl -DMI_OUT=1 -DTUI=1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral -Wunused-label -Wunused-function ../../src/gdb/printcmd.c ../../src/gdb/printcmd.c: In function `printf_command': ../../src/gdb/printcmd.c:1962: warning: format not a string literal, argument types not checked ../../src/gdb/printcmd.c:1968: warning: format not a string literal, argument types not checked ../../src/gdb/printcmd.c:1975: warning: format not a string literal, argument types not checked ../../src/gdb/printcmd.c:1985: warning: format not a string literal, argument types not checked Making init.c I configured GDB as 'CFLAGS=-g ./configure --prefix=...'. However, as you can see, I don't have the -Wno-error. But if this is a known warning, it doesn't matter anyways. Thanks, Bob Rossi