Re: A compiling warning in jsonb_populate_record_valid - Mailing list pgsql-hackers

From Tom Lane
Subject Re: A compiling warning in jsonb_populate_record_valid
Date
Msg-id 345271.1706194652@sss.pgh.pa.us
Whole thread Raw
In response to Re: A compiling warning in jsonb_populate_record_valid  (Amit Langote <amitlangote09@gmail.com>)
Responses Re: A compiling warning in jsonb_populate_record_valid
List pgsql-hackers
Amit Langote <amitlangote09@gmail.com> writes:
> On Thu, Jan 25, 2024 at 2:59 PM Richard Guo <guofenglinux@gmail.com> wrote:
>> I came across a warning when building master (a044e61f1b) on old GCC
>> (4.8.5).

> Will apply the attached, which does this:

> -   return BoolGetDatum(!SOFT_ERROR_OCCURRED(&escontext));
> +   return BoolGetDatum(!escontext.error_occurred);

-1 please.  We should not break that abstraction for the sake
of ignorable warnings on ancient compilers.

            regards, tom lane



pgsql-hackers by date:

Previous
From: jian he
Date:
Subject: Re: remaining sql/json patches
Next
From: Robert Haas
Date:
Subject: Re: cleanup patches for incremental backup