Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Oct 2001 11:50:38 -0400 (EDT)
From:      Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To:        Dag-Erling Smorgrav <des@ofug.org>
Cc:        <cvs-committers@FreeBSD.org>, <cvs-all@FreeBSD.org>
Subject:   Re: cvs commit: src/lib/libfetch Makefile common.c common.h ftp.c  http.c
Message-ID:  <200110181550.f9IFoc466228@khavrinen.lcs.mit.edu>
In-Reply-To: <xzp8ze9dl3z.fsf@flood.ping.uio.no>
References:  <20011019010459.L25252-100000@delplex.bde.org> <xzp8ze9dl3z.fsf@flood.ping.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On 18 Oct 2001 17:27:28 +0200, Dag-Erling Smorgrav <des@ofug.org> said:

> Bruce Evans <bde@zeta.org.au> writes:
>> This adds lots of digusting gcc-specific-hacks which have been rejected in
>> other source files.  E.g.:

> There's a reason why these are marked with XXX.  Do you have a
> portable solution that does not involve strdup()?

The portable solution is to use the correct casts.  Just because the
compiler emits a diagnostic does not mean that anything needs to be
done about it.  If you absolutely must remove the warning, use a union
or add a level of indirection -- neither of which are as portable as
the correct cast, but both are unlikely to break on any sane
architecture.

-GAWollman


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110181550.f9IFoc466228>