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

Re: pgsql: Do not try to change a const variable.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Simon Riggs <simon(at)2ndQuadrant(dot)com>
Cc: Michael Meskes <meskes(at)postgresql(dot)org>, pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Do not try to change a const variable.
Date: 2008-12-15 19:09:07
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-committers
Simon Riggs <simon(at)2ndQuadrant(dot)com> writes:
> I get this 

> misc.c:253: warning: assignment discards qualifiers from pointer target
> type

> I'm guessing that error comes from this commit?

Yeah.  It's got worse problems than that too: it's not accounting for
possibility that internationalized string is significantly longer than
the ASCII version.  Fixed, I think.

			regards, tom lane

In response to

pgsql-committers by date

Next:From: Bruce MomjianDate: 2008-12-15 21:11:54
Subject: pgsql: Add missing 'break' in Win32 switch statement, reported by Martin
Previous:From: Tom LaneDate: 2008-12-15 19:07:48
Subject: pgsql: Fix cast-away-const problem as well as bogus calculation of

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