From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32496 invoked by alias); 19 Dec 2005 22:10:00 -0000 Received: (qmail 32489 invoked by uid 22791); 19 Dec 2005 22:10:00 -0000 X-Spam-Check-By: sourceware.org Received: from nitzan.inter.net.il (HELO nitzan.inter.net.il) (192.114.186.20) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 19 Dec 2005 22:09:59 +0000 Received: from HOME-C4E4A596F7 (IGLD-80-230-80-85.inter.net.il [80.230.80.85]) by nitzan.inter.net.il (MOS 3.7.2-GA) with ESMTP id CGF53669 (AUTH halo1); Tue, 20 Dec 2005 00:09:54 +0200 (IST) Date: Tue, 20 Dec 2005 20:50:00 -0000 Message-Id: From: Eli Zaretskii To: Alexandre Oliva CC: gdb-patches@sources.redhat.com In-reply-to: (message from Alexandre Oliva on Mon, 19 Dec 2005 17:20:48 -0200) Subject: Re: fixes for type-punning warnings in GCC 4.1 Reply-to: Eli Zaretskii References: X-IsSubscribed: yes 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 X-SW-Source: 2005-12/txt/msg00243.txt.bz2 > From: Alexandre Oliva > Date: Mon, 19 Dec 2005 17:20:48 -0200 > > This patch fixes the type-punning warnings that the GCC 4.1 branch > issues when compiling the GDB code base. > [...] > - num = sscanf (p, "%g%s", (float *) &putithere->typed_val_float.dval,s); > + num = sscanf (p, "%g%s", (float *) (void *) &putithere->typed_val_float.dval,s); If this is the fix, then forgive me, but I'd prefer not to fix it at all, 'cause it's so UUUGLYYYY! If we can use some command-line switch to GCC to shut it up, let's do that instead. Failing that, let's just leave the code alone, so that GCC's continued whining stands as a token of our unappreciation to compilers that should have known better! Thanks for working on this, anyway.