Re: A few warnings on Windows

From: Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Michael Paquier <michael(at)paquier(dot)xyz>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: A few warnings on Windows
Date: 2018-05-02 05:41:32
Message-ID: CAEepm=05qF_Sq80oVsk53mvCO3KNSVK8Dt5VCnB5LHkQjh9ejQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, May 2, 2018 at 4:28 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com> writes:
>> 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.

Thanks. Looking good on dory and woodlouse.

The only remaining warnings on those machines now come from the fact
that our port_win32.h and Perl's XSUB.h both want to define macros to
define macros for libc functions like mkdir etc. plperl.h already
seems to deal with other similar kinds of ugliness. Perhaps if
PG_NEED_PERL_XSUB_H is defined we should undefine port_win32.h's
libc-stealing macros before including it? Either way XSUB.h's
definitions win. That should get us to 0 warnings. See attached (not
tested).

--
Thomas Munro
http://www.enterprisedb.com

Attachment Content-Type Size
0001-Try-to-fix-compiler-warnings-in-plperl-on-Windows.patch application/octet-stream 1.3 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2018-05-02 06:14:52 Re: [SPAM] Re: Local partitioned indexes and pageinspect
Previous Message Ashutosh Bapat 2018-05-02 05:17:44 Re: Remove mention in docs that foreign keys on partitioned tables are not supported