m.litsarev@postgrespro.ru writes:
> Does it makes sense to add volatile attribute to the _do_rethrow or
> should we just ignore that -Wclobbered warning?
-Wclobbered would be really useful if it worked --- but sadly,
on practically all gcc and clang versions, those warnings have
nearly nothing to do with reality. We typically ignore them.
See eg:
https://www.postgresql.org/message-id/4001633.1722625252@sss.pgh.pa.us
regards, tom lane