Re: Warning -Wclobbered in PG_TRY(...) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Warning -Wclobbered in PG_TRY(...)
Date
Msg-id 1854609.1748517245@sss.pgh.pa.us
Whole thread Raw
Responses Re: Warning -Wclobbered in PG_TRY(...)
List pgsql-hackers
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



pgsql-hackers by date:

Previous
From: Dave Cramer
Date:
Subject: Re: Correct documentation for protocol version
Next
From: jian he
Date:
Subject: Re: Foreign key validation failure in 18beta1