Re: Clang function pointer type warnings in v14, v15 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Clang function pointer type warnings in v14, v15
Date
Msg-id 2247498.1720751207@sss.pgh.pa.us
Whole thread Raw
In response to Re: Clang function pointer type warnings in v14, v15  (Thomas Munro <thomas.munro@gmail.com>)
Responses Re: Clang function pointer type warnings in v14, v15
List pgsql-hackers
Thomas Munro <thomas.munro@gmail.com> writes:
> On Sat, Jul 6, 2024 at 2:35 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> I see that there are a boatload of related warnings in older
>> branches too; do we want to try to do anything about that?  (I doubt
>> code changes would be in-scope, but maybe adding a -Wno-foo switch
>> to the build flags would be appropriate.)

> I don't see any on clang 16 in the 12 and 13 branches.  Where are you
> seeing them?

In the buildfarm.  "adder" and a bunch of other machines are throwing
-Wcast-function-type in about two dozen places in v13, and "jay" is
emitting several hundred -Wdeprecated-non-prototype warnings.

> Has anyone thought about the -Wclobbered warnings from eg tamandua?

I decided long ago that gcc's algorithm for emitting that warning
has no detectable connection to real problems.  Maybe it's worth
silencing them on general principles, but I've seen no sign that
it would actually fix any bugs.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Nathan Bossart
Date:
Subject: Re: improve performance of pg_dump with many sequences
Next
From: Tom Lane
Date:
Subject: Re: Redundant syscache access in get_rel_sync_entry()