Unneeded volatile qualifier in fmgr.c

From: Julien Rouhaud <rjuju123(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Unneeded volatile qualifier in fmgr.c
Date: 2025-02-12 08:25:38
Message-ID: Z6xbAgXKY2L-3d5Q@jrouhaud
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

While reading some code in fmgr.c I noticed that the save_nestlevel variable is
declared as volatile. I'm assuming that's because a long time ago it was
modified in the PG_TRY / PG_CATCH block but it doesn't look needed anymore.

Trivial patch attached.

Attachment Content-Type Size
fmgr_volatile.diff text/plain 414 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bertrand Drouvot 2025-02-12 08:41:34 Re: Unneeded volatile qualifier in fmgr.c
Previous Message Michael Paquier 2025-02-12 08:24:21 Re: Address the bug in 041_checkpoint_at_promote.pl