Re: Suppress compiler warnings on mingw

Поиск
Список
Период
Сортировка
Искать
От
ITAGAKI Takahiro
Тема
Re: Suppress compiler warnings on mingw
Дата
Msg-id
20080317115020.652C.52131E4D@oss.ntt.co.jp
Ответ на
Список
Дерево обсуждения
Suppress compiler warnings on mingw ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>
Re: Suppress compiler warnings on mingw Peter Eisentraut <peter_e@gmx.net>
Re: Suppress compiler warnings on mingw ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>
Re: Suppress compiler warnings on mingw Peter Eisentraut <peter_e@gmx.net>
Re: Suppress compiler warnings on mingw ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>
Re: Suppress compiler warnings on mingw Andrew Dunstan <andrew@dunslane.net>
Re: Suppress compiler warnings on mingw Jeremy Drake <pgsql@jdrake.com>

Peter Eisentraut  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  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


В списке pgsql-patches по дате отправления
От: Tom Lane
Дата:
От: Kohei KaiGai
Дата:
FAQ