Re: Suppress compiler warnings on mingw - Mailing list pgsql-patches

From ITAGAKI Takahiro
Subject Re: Suppress compiler warnings on mingw
Date
Msg-id 20080317115020.652C.52131E4D@oss.ntt.co.jp
Whole thread Raw
In response to Re: Suppress compiler warnings on mingw  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Suppress compiler warnings on mingw  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-patches
Peter Eisentraut <peter_e@gmx.net> wrote:

> Then try using %lu and no casts.  That should get rid of the warnings the
> proper way.

Ok, I rewrote it to use %lu for format strings.


Jeremy Drake <pgsql@jdrake.com> wrote:
> sizeof(DWORD) is always 4, even on 64-bit windows.  sizeof(long) is also
> always 4.

I got it. This change will work on 64-bit windows, because DWORD is
defined as 'unsigned long' there, too. We need to support LLP64
compliers in advance, though.

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center



Attachment

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: updated hash functions for postgresql v1
Next
From: Kohei KaiGai
Date:
Subject: [3/4] Proposal of SE-PostgreSQL patches