mirror of
https://github.com/postgres/postgres.git
synced 2025-06-16 06:01:02 +03:00
More unconstify use
Replace casts whose only purpose is to cast away const with the unconstify() macro. Discussion: https://www.postgresql.org/message-id/flat/53a28052-f9f3-1808-fed9-460fd43035ab%402ndquadrant.com
This commit is contained in:
@ -3688,7 +3688,7 @@ to_timestamp(PG_FUNCTION_ARGS)
|
||||
/* Use the specified time zone, if any. */
|
||||
if (tm.tm_zone)
|
||||
{
|
||||
int dterr = DecodeTimezone((char *) tm.tm_zone, &tz);
|
||||
int dterr = DecodeTimezone(unconstify(char *, tm.tm_zone), &tz);
|
||||
|
||||
if (dterr)
|
||||
DateTimeParseError(dterr, text_to_cstring(date_txt), "timestamptz");
|
||||
|
Reference in New Issue
Block a user