Re: pgsql: Do not try to change a const variable. - Mailing list pgsql-committers

From Tom Lane
Subject Re: pgsql: Do not try to change a const variable.
Date
Msg-id 8494.1229368147@sss.pgh.pa.us
Whole thread Raw
In response to Re: pgsql: Do not try to change a const variable.  (Simon Riggs <simon@2ndQuadrant.com>)
List pgsql-committers
Simon Riggs <simon@2ndQuadrant.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

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix cast-away-const problem as well as bogus calculation of
Next
From: momjian@postgresql.org (Bruce Momjian)
Date:
Subject: pgsql: Add missing 'break' in Win32 switch statement, reported by Martin