From owner-freebsd-audit Thu Mar 29 0:42:11 2001 Delivered-To: freebsd-audit@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 3007237B71E for ; Thu, 29 Mar 2001 00:42:09 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id SAA17389; Thu, 29 Mar 2001 18:41:44 +1000 Date: Thu, 29 Mar 2001 18:41:04 +1000 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: Mike Heffner Cc: Eric Melville , freebsd-audit@FreeBSD.ORG, Chris Faulhaber Subject: Re: [murray@osd.bsdi.com: Re: quick patch to window(1)] In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 28 Mar 2001, Mike Heffner wrote: > On 28-Mar-2001 Eric Melville wrote: > | but simply forced the thing to be a pointer. Now, the question is, why > | the complaint from the compiler in the first place? If I go and cast > | it to (char *), the compiler remains happy. A bit odd considering that > | str_cpy() is declared as this type to begin with. > > str_cpy() is declared in mystring.h which isn't included from scanner.c And the cast makes things worse by breaking the warning. You will still get a warning on systems with sizeof(char *) != sizeof(int), e.g., alphas, and the error that the warning is about is normally fatal on precisely these systems. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message