needlessly casting away const in localtime.c - Mailing list pgsql-hackers

From Mark Dilger
Subject needlessly casting away const in localtime.c
Date
Msg-id 3A6A7CE0-1F23-49F5-BFCF-BDA0727B7DAA@gmail.com
Whole thread Raw
Responses Re: needlessly casting away const in localtime.c  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Friends, per the recent thread "gratuitous casting away const", the
assignment on line 1247 of localtime.c has const lvalue and rvalue,
yet casts through (char *) rather than (const char *).  Fix attached.

Mark Dilger


Attachment

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: increasing the default WAL segment size
Next
From: Tom Lane
Date:
Subject: Re: needlessly casting away const in localtime.c