Date: 30 Apr 2002 22:53:38 +0200 From: Dag-Erling Smorgrav <des@ofug.org> To: Francis Jordan <francrj@yahoo.com> Cc: freebsd-chat@freebsd.org Subject: Re: strange gcc warning Message-ID: <xzpd6wgsyb1.fsf@flood.ping.uio.no> In-Reply-To: <20020430181138.37192.qmail@web20403.mail.yahoo.com> References: <20020430181138.37192.qmail@web20403.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Francis Jordan <francrj@yahoo.com> writes: > The warning goes away when I wrap the array in a > struct, but I still don't understand it clearly. > If the array is converted to a pointer, isn't it > safe to cast a regular pointer to a pointer to > const (i.e. a read-only pointer)? Yes, but what you had in your argument list was a pointer to a pointer. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpd6wgsyb1.fsf>