From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31083 invoked by alias); 6 Oct 2004 10:14:22 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 31014 invoked from network); 6 Oct 2004 10:14:19 -0000 Received: from unknown (HELO Cantor.suse.de) (195.135.220.2) by sourceware.org with SMTP; 6 Oct 2004 10:14:19 -0000 Received: from hermes.suse.de (hermes-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by Cantor.suse.de (Postfix) with ESMTP id 01AA7CE9D5C; Wed, 6 Oct 2004 12:14:18 +0200 (CEST) To: Paul Hilfinger Cc: cagney@gnu.org, gdb-patches@sources.redhat.com Subject: Re: [RFA]: Remove warnings from ada-exp.tab.c compilation References: <20041005103727.938AEF2BD3@nile.gnat.com> <4162FA1F.2030207@gnu.org> <20041006094738.A6034F2C9D@nile.gnat.com> From: Andreas Schwab X-Yow: Didn't KIERKEGAARD wear out his TIRES in VIENNA during a SNOWSTORM of FREUD's unpaid DENTAL BILLS? Date: Wed, 06 Oct 2004 10:14:00 -0000 In-Reply-To: <20041006094738.A6034F2C9D@nile.gnat.com> (Paul Hilfinger's message of "Wed, 6 Oct 2004 05:47:38 -0400 (EDT)") Message-ID: User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2004-10/txt/msg00111.txt.bz2 Paul Hilfinger writes: >> PS: >> + tempbuf = (char *) realloc (tempbuf, tempbufsize); >> the cast is redundant - realloc returns (void *). > > Yeah, well, call it a personal quirk, call it an act of rebellion. > But when I see an ISO standard that tells me I don't need this conversion > by saying that > > "A pointer to void shall have the same representation and > alignment requirements as a pointer to a character type." This has nothing to do with representation, but with implicit conversion in an assignment. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."