Re: Warning -Wclobbered in PG_TRY(...)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: m(dot)litsarev(at)postgrespro(dot)ru
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Warning -Wclobbered in PG_TRY(...)
Date: 2025-05-29 11:14:05
Message-ID: 1854609.1748517245@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

m(dot)litsarev(at)postgrespro(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Arseniy Mukhin 2025-05-29 11:53:32 Re: Amcheck verification of GiST and GIN
Previous Message Dave Cramer 2025-05-29 11:12:27 Re: Correct documentation for protocol version