Re: A few warnings on Windows

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Christian Ullrich <chris@chrullrich.net>
Cc: Thomas Munro <thomas.munro@enterprisedb.com>, Michael Paquier <michael@paquier.xyz>, Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2018-05-03T14:18:30Z
Lists: pgsql-hackers
Christian Ullrich <chris@chrullrich.net> writes:
>> Thomas Munro <thomas.munro@enterprisedb.com> writes:
>>> Does anyone know what line 174 of pyconfig.h happens to say?

> typedef _W64 int ssize_t;
> , in a "not for 64-bit" block.
> <https://github.com/python/cpython/blob/v3.6.3/PC/pyconfig.h>, 3.6.3 is 
> the installed version on whelk.

Thanks.  Not a lot we're going to be able to do about silencing that
one, I'm afraid.  Too bad they haven't wrapped that stanza in
"#ifndef HAVE_SSIZE_T".

			regards, tom lane


Commits

  1. Suppress some compiler warnings in plperl on Windows.

  2. Fix compiler warning on Windows.

  3. Change SIZEOF_BOOL to 1 for Windows.

  4. Fix some assorted compiler warnings on Windows.

  5. Clean up warnings from -Wimplicit-fallthrough.