From owner-freebsd-hackers Thu Jun 7 9: 8:38 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.13]) by hub.freebsd.org (Postfix) with SMTP id 6F70837B406 for ; Thu, 7 Jun 2001 09:08:36 -0700 (PDT) (envelope-from roam@orbitel.bg) Received: (qmail 4731 invoked by uid 1000); 7 Jun 2001 16:07:22 -0000 Date: Thu, 7 Jun 2001 19:07:22 +0300 From: Peter Pentchev To: hackers@FreeBSD.org Subject: free() and const warnings Message-ID: <20010607190722.G724@ringworld.oblivion.bg> Mail-Followup-To: hackers@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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) G'luck, Peter -- I've heard that this sentence is a rumor. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message