From owner-cvs-all Thu Oct 18 8:50:47 2001 Delivered-To: cvs-all@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id A9A3737B407; Thu, 18 Oct 2001 08:50:41 -0700 (PDT) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.11.4/8.11.4) id f9IFoc466228; Thu, 18 Oct 2001 11:50:38 -0400 (EDT) (envelope-from wollman) Date: Thu, 18 Oct 2001 11:50:38 -0400 (EDT) From: Garrett Wollman Message-Id: <200110181550.f9IFoc466228@khavrinen.lcs.mit.edu> To: Dag-Erling Smorgrav Cc: , Subject: Re: cvs commit: src/lib/libfetch Makefile common.c common.h ftp.c http.c In-Reply-To: References: <20011019010459.L25252-100000@delplex.bde.org> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG < said: > Bruce Evans 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