From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18415 invoked by alias); 15 Aug 2008 08:44:10 -0000 Received: (qmail 18405 invoked by uid 22791); 15 Aug 2008 08:44:09 -0000 X-Spam-Check-By: sourceware.org Received: from cantor.suse.de (HELO mx1.suse.de) (195.135.220.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 15 Aug 2008 08:43:30 +0000 Received: from Relay2.suse.de (relay-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id AF23741A62; Fri, 15 Aug 2008 10:43:26 +0200 (CEST) From: Andreas Schwab To: Tom Tromey Cc: gdb-patches@sourceware.org Subject: Re: RFA: fix PR 1535 References: <20080814174814.GB15804@caradoc.them.org> <20080815042002.GC16436@caradoc.them.org> X-Yow: I FORGOT to do the DISHES!! Date: Fri, 15 Aug 2008 08:44:00 -0000 In-Reply-To: <20080815042002.GC16436@caradoc.them.org> (Daniel Jacobowitz's message of "Fri, 15 Aug 2008 00:20:02 -0400") Message-ID: User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes 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-08/txt/msg00399.txt.bz2 Daniel Jacobowitz writes: > But I'm not sure why you didn't get a warning for (void *) 1. GCC doesn't warn for pointer casts of literals, since the value is known and it's a common idiom (SIG_IGN uses it, for example). Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."