Re: patch: Use pg_assume in jsonb_util.c to fix GCC 15 warnings - Mailing list pgsql-hackers

From Tom Lane
Subject Re: patch: Use pg_assume in jsonb_util.c to fix GCC 15 warnings
Date
Msg-id 1138043.1752620290@sss.pgh.pa.us
Whole thread Raw
In response to Re: patch: Use pg_assume in jsonb_util.c to fix GCC 15 warnings  (Peter Geoghegan <pg@bowt.ie>)
Responses Re: patch: Use pg_assume in jsonb_util.c to fix GCC 15 warnings
List pgsql-hackers
Peter Geoghegan <pg@bowt.ie> writes:
> In the past, it was often necessary to work around MSVC's inability to
> see that a block containing elog(ERROR) doesn't actually need to
> initialize variables that'll never actually be used in code that comes
> after that block. We still have many "keep compiler quiet" variable
> initializations due to this.

> Is that still something that we need to worry about?

Good question.  It's not very clear what set of compiler versions
people are still using, but maybe it'd be okay to stop worrying
about suppressing such warnings.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Jack Ng
Date:
Subject: RE: Changing shared_buffers without restart
Next
From: Peter Geoghegan
Date:
Subject: Re: patch: Use pg_assume in jsonb_util.c to fix GCC 15 warnings