Re: pgsql: Silence compiler warning about pointer type mismatch on some pla

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема Re: pgsql: Silence compiler warning about pointer type mismatch on some pla
Дата
Msg-id CAHGQGwE6nS7jise-0hSyt4GT2a6ngtpc9gzssr9nHxDvKiYGvQ@mail.gmail.com
обсуждение исходный текст
Ответ на pgsql: Silence compiler warning about pointer type mismatch on some pla  (Heikki Linnakangas <heikki.linnakangas@iki.fi>)
Ответы Re: pgsql: Silence compiler warning about pointer type mismatch on some pla  (Heikki Linnakangas <hlinnakangas@vmware.com>)
Список pgsql-committers
On Tue, Oct 2, 2012 at 11:47 PM, Heikki Linnakangas
<heikki.linnakangas@iki.fi> wrote:
> Silence compiler warning about pointer type mismatch on some platforms.
>
> timeval.t_sec is of type time_t, which is not always compatible with long.
> I'm not sure if this was just harmless warning or a real bug, but this
> fixes it, anyway.

+                timeout.tv_sec = usecs;

This code looks like a bug. No? I think the attached patch should be applied.

Regards,

--
Fujii Masao

Вложения

В списке pgsql-committers по дате отправления:

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: pgsql: Disable _FORTIFY_SOURCE with ICC
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Fix typo in previous warning-silencing patch.