Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jun 2001 19:56:34 +0300
From:      Peter Pentchev <roam@orbitel.bg>
To:        hackers@FreeBSD.org
Subject:   Re: free() and const warnings
Message-ID:  <20010607195634.I724@ringworld.oblivion.bg>
In-Reply-To: <20010607190722.G724@ringworld.oblivion.bg>; from roam@orbitel.bg on Thu, Jun 07, 2001 at 07:07:22PM %2B0300
References:  <20010607190722.G724@ringworld.oblivion.bg>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jun 07, 2001 at 07:07:22PM +0300, Peter Pentchev wrote:
> Hi,
> 
> Is free((void *) (size_t) ptr) the only way to free a const whatever *ptr
> with WARNS=2?  (or more specifically, with -Wcast-qual)

Uhm.  OK.  So size_t may not be enough to hold a pointer.  What is it then -
caddr_t?

G'luck,
Peter

-- 
"yields falsehood, when appended to its quotation." yields falsehood, when appended to its quotation.

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




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