Hi, On 2025-03-18 11:26:15 -0400, Tom Lane wrote: > Andres Freund <and...@anarazel.de> writes: > > I wonder if we should instead either ask those buildfarm animals to be > > disabled or have the warning manually disabled. I don't think it's a good > > investment on our part to work towards warning cleanliness on clang 4 and 5, > > on distros from 2017 and and 2018 respectively. > > Well, if we don't want to fix it I can just adjust my warning-scraping > script to ignore these. Let's wait a bit and see if any newer > compilers warn similarly before deciding.
FWIW, adding a few casts does silence the warnings, at least on clang-3.9, which I had around. But there also are other warnings on that compiler, mainly stuff like: ../../home/andres/src/postgresql/src/interfaces/libpq/fe-auth-oauth-curl.c:1437:28: warning: suggest braces around initialization of subobject [-Wmissing-braces] struct itimerspec spec = {0}; I lean towards not fixing this stuff, but if you would like me to, I can. Greetings, Andres Freund