Clang function pointer type warnings in v14, v15

From: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Clang function pointer type warnings in v14, v15
Date: 2024-07-06 00:23:26
Message-ID: CA+hUKGKnBvdrbH2LW+7-Lv599t9JFOHjx=xw-VQmdoj=9585CQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

REL_14_STABLE and REL_15_STABLE have commit de8feb1f3, which turned on
-Wcast-function-type, but don't have commit 101c37cd, which disabled
-Wcast-function-type-strict as we agreed to do[1]. I noticed this on
my local system that has clang 18 as compiler, but you can see it on
any build farm animal using clang 16+.

So I propose to back-patch 101c37cd to those two branches.

[1] https://www.postgresql.org/message-id/flat/CA%2BhUKGKpHPDTv67Y%2Bs6yiC8KH5OXeDg6a-twWo_xznKTcG0kSA%40mail.gmail.com

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2024-07-06 00:44:50 Re: Adding skip scan (including MDAM style range skip scan) to nbtree
Previous Message David Rowley 2024-07-06 00:08:50 Re: Use generation memory context for tuplestore.c