Re: [HACKERS] pgsql: Fix compiler warnings on 64-bit boxes:

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] pgsql: Fix compiler warnings on 64-bit boxes:
Дата
Msg-id 20830.1157561707@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] pgsql: Fix compiler warnings on 64-bit  (Teodor Sigaev <teodor@sigaev.ru>)
Список pgsql-committers
Teodor Sigaev <teodor@sigaev.ru> writes:
>> ereport(...errmsg("trouble at offset " UINT64_FORMAT, bigintvar));

> One more solution: add format code %D to expand_fmt_string() which should be
> expanded to usual %d on 32-bit architecture and to UINT64_FORMAT on 64-bit.

Not very workable unless you can figure out how to teach gcc what it means...
else we lose compiler checking that the corresponding argument matches,
which'd be even more important than usual with a machine-dependent
format code.

            regards, tom lane

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

Предыдущее
От: Teodor Sigaev
Дата:
Сообщение: Re: [HACKERS] pgsql: Fix compiler warnings on 64-bit
Следующее
От: h-saito@pgfoundry.org (User H-saito)
Дата:
Сообщение: npgsql - Npgsql: Ooops,sorry..