Re: A few warnings on Windows
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@enterprisedb.com>
Cc: Michael Paquier <michael@paquier.xyz>,
Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2018-05-02T04:28:54Z
Lists: pgsql-hackers
Thomas Munro <thomas.munro@enterprisedb.com> writes: > On Wed, May 2, 2018 at 12:51 PM, Thomas Munro > <thomas.munro@enterprisedb.com> wrote: >> Perhaps that's what Peter E meant when he said "Windows could use some >> manual adjustments in pg_config.h.win32 if anyone >> cares"[1]. Should we just change this to 1? I'm going to go and test >> that now. From googling sizeof(bool) am aware that ancient VC (before >> 5.0 more than 20 years ago) had a header that defined bool as int, but >> that seems irrelevant now, right? > That compiles and runs the main checks (except tablespace which I > suppress) cleanly for me and I assume it really is using > stdbool.h this time. Hopefully plperl will be happier this way. Pushed. I was slightly tempted to add a static assertion that SIZEOF_BOOL == sizeof(bool), but there's not any obvious home for such a thing, and it's probably just useless worrying anyway. > Since my earlier test, a new entirely independent warning arrived with > commit 41c912ca: Ooops. > Patch for that attached, too. Pushed that too, thanks. regards, tom lane
Commits
-
Suppress some compiler warnings in plperl on Windows.
- 0996e4be047f 11.0 landed
-
Fix compiler warning on Windows.
- fe4ecd08d81c 11.0 landed
-
Change SIZEOF_BOOL to 1 for Windows.
- 6fe25c1358a2 11.0 landed
-
Fix some assorted compiler warnings on Windows.
- b2328bf62b64 11.0 landed
-
Clean up warnings from -Wimplicit-fallthrough.
- 41c912cad159 11.0 landed