Re: unconstify equivalent for volatile - Mailing list pgsql-hackers

From Tom Lane
Subject Re: unconstify equivalent for volatile
Date
Msg-id 18194.1550504630@sss.pgh.pa.us
Whole thread Raw
In response to unconstify equivalent for volatile  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Responses Re: unconstify equivalent for volatile  (Andres Freund <andres@anarazel.de>)
Re: unconstify equivalent for volatile  (Petr Jelinek <petr.jelinek@2ndquadrant.com>)
List pgsql-hackers
Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
> I propose to add an equivalent to unconstify() for volatile.  When
> working on this, I picked the name unvolatize() mostly as a joke, but it
> appears it's a real word.  Other ideas?

Umm ... wouldn't this amount to papering over actual bugs?  I can
think of legitimate reasons to cast away const, but casting away
volatile seems pretty dangerous, and not something to encourage
by making it notationally easy.

            regards, tom lane


pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: unconstify equivalent for volatile
Next
From: Michael Banck
Date:
Subject: Re: Progress reporting for pg_verify_checksums