Re: A few warnings on Windows
Thomas Munro <thomas.munro@enterprisedb.com>
From: Thomas Munro <thomas.munro@enterprisedb.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Michael Paquier <michael@paquier.xyz>,
Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2018-05-01T22:29:17Z
Lists: pgsql-hackers
Attachments
- 0001-Fix-some-assorted-compiler-warnings-on-Windows.patch (application/octet-stream) patch 0001
On Wed, May 2, 2018 at 9:29 AM, Thomas Munro <thomas.munro@enterprisedb.com> wrote: > On Wed, May 2, 2018 at 8:48 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote: >> Yeah. In the wake of Peter's changes to use <stdbool.h> on other >> platforms, should we be enabling HAVE_STDBOOL_H for Windows? > > It seems that header arrived in VC 2013. I will find the conditional > macrology for that. > > https://blogs.msdn.microsoft.com/vcblog/2013/07/19/c99-library-support-in-visual-studio-2013/ Here's a patch that builds warning-free for me. Result: https://ci.appveyor.com/project/macdice/postgres/build/1.0.139 Unfortunately my scripting for that doesn't actually build the plperl stuff yet (need to cannibalise more buildfarm scripts...) so I can't confirm that it'll fix the true/false redefinition warnings visible on whelk (VC 2013) and dory (2015) but not hamerkop (2005), thrips (2010), bowerbird (2012). It seems likely. -- Thomas Munro http://www.enterprisedb.com
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