Skip site navigation (1) Skip section navigation (2)

Re: Remove warning about const qualifier

From: Stefan Huehner <stefan(at)huehner(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Remove warning about const qualifier
Date: 2007-04-16 19:31:39
Message-ID: 20070416193139.GB3979@pro4u.org (view raw or flat)
Thread:
Lists: pgsql-patches
On Mon, Apr 16, 2007 at 02:51:55PM -0400, Tom Lane wrote:
> Kris Jurka <books(at)ejurka(dot)com> writes:
> > The attached patch removes this warning:
> > encnames.c:511: warning: passing argument 1 of 'clean_encoding_name' 
> > discards qualifiers from pointer target type
> 
> Applied, but I've not seen that warning myself ... what compiler are
> you using exactly?

In general these warning turn up with either -Wwrite-strings (which find
"string" embedded in the source code with are assigned to char*
variables (or given as parameters). Or using -Wcast-qual for 'general'
discarding a const qualifier.

Regards,
Stefan


In response to

pgsql-patches by date

Next:From: Magnus HaganderDate: 2007-04-16 20:16:42
Subject: Re: patch to suppress psql timing output in quiet mode
Previous:From: Tom LaneDate: 2007-04-16 19:09:38
Subject: Re: Remove warning about const qualifier

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group