Date: Fri, 8 Jun 2001 16:19:10 +0300 From: Peter Pentchev <roam@orbitel.bg> To: Assar Westerlund <assar@FreeBSD.ORG> Cc: Thomas David Rivers <rivers@dignus.com>, jhb@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: free() and const warnings Message-ID: <20010608161909.H7671@ringworld.oblivion.bg> In-Reply-To: <5lsnhbqfry.fsf@assaris.sics.se>; from assar@FreeBSD.ORG on Fri, Jun 08, 2001 at 03:09:53PM %2B0200 References: <20010608114957.C19938@ringworld.oblivion.bg> <200106081055.GAA49069@lakes.dignus.com> <20010608154249.A7671@ringworld.oblivion.bg> <5ld78frunz.fsf@assaris.sics.se> <20010608160304.G7671@ringworld.oblivion.bg> <5lsnhbqfry.fsf@assaris.sics.se>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jun 08, 2001 at 03:09:53PM +0200, Assar Westerlund wrote: > Peter Pentchev <roam@orbitel.bg> writes: > > My explanation was a reply to a suggestion to remove the 'const' in > > the structure definition. > > My fault. The code that I should have shown was without the 'const'. > With gcc 2.95.3 and 'gcc -O -g -Werror -Wall -W -Wcast-qual -c foo.c' > I don't get any errors with the const-less program (below). I was > wondering if this is something that has changed in recent gcc. Errrr d'oh, ok, my fault - it's not -Wcast-qual, it's -Wwrite-strings that causes the problem :) WARNS=2 in -current makes it go boom. G'luck, Peter -- If this sentence didn't exist, somebody would have invented it. 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?20010608161909.H7671>