From: | Andres Freund <andres(at)anarazel(dot)de> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org, Peter Eisentraut <peter(at)eisentraut(dot)org> |
Subject: | CI CompilerWarnings test fails on 15 in mingw_cross_warning |
Date: | 2024-11-17 01:59:52 |
Message-ID: | t2vjrcb3bloxf5qqvxjst6r7lvrefqyecxgt2koy5ho5b5glr2@yuupmm6whgob |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi,
See https://cirrus-ci.com/task/5880116075560960
[18:14:04.821] time make -s -j${BUILD_JOBS} world-bin
[18:15:49.090] pg_locale.c: In function ‘get_collation_actual_version’:
[18:15:49.090] pg_locale.c:1763:42: error: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Werror=format=]
[18:15:49.090] 1763 | collversion = psprintf("%d.%d,%d.%d",
[18:15:49.090] | ~^
[18:15:49.090] | |
[18:15:49.090] | int
[18:15:49.090] | %ld
[18:15:49.090] 1764 | (version.dwNLSVersion >> 8) & 0xFFFF,
[18:15:49.090] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[18:15:49.090] | |
[18:15:49.090] | long unsigned int
I have no idea why we are seeing this error now when we didn't in the past -
there don't seem to have been any relevant changes?
It does reproduce on my debian sid machine, so it's something we ought to fix,
I think?
We did fix it in newer versions:
Author: Peter Eisentraut <peter(at)eisentraut(dot)org>
Branch: master Release: REL_16_BR [a9bc04b21] 2023-03-24 07:21:40 +0100
Fix incorrect format placeholders
The fields of NLSVERSIONINFOEX are of type DWORD, which is unsigned
long, so the results of the computations being printed are also of
type unsigned long.
Peter, any reason you didn't backpatch that?
Greetings,
Andres Freund
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2024-11-17 02:33:11 | Re: [EXTERNAL] Re: Add non-blocking version of PQcancel |
Previous Message | Andres Freund | 2024-11-17 01:37:57 | Re: [EXTERNAL] Re: Add non-blocking version of PQcancel |