Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Mar 2001 18:41:04 +1000 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Mike Heffner <mheffner@vt.edu>
Cc:        Eric Melville <eric@meow.osd.bsdi.com>, freebsd-audit@FreeBSD.ORG, Chris Faulhaber <jedgar@fxp.org>
Subject:   Re: [murray@osd.bsdi.com: Re: quick patch to window(1)]
Message-ID:  <Pine.BSF.4.21.0103291835480.32448-100000@besplex.bde.org>
In-Reply-To: <XFMail.20010328144314.mheffner@vt.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0103291835480.32448-100000>