Re: -Wformat-signedness

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: -Wformat-signedness
Дата
Msg-id 1974847.1604935524@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: -Wformat-signedness  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Ответы Re: -Wformat-signedness
Список pgsql-hackers
Peter Eisentraut <peter.eisentraut@enterprisedb.com> writes:
> 1. enums are unsigned by default in gcc, so all those internal error 
> messages "unrecognized blah kind: %d" need to be changed to %u.

Do we have reason to think that that is true in every C compiler?
My own preference for this would be to leave the messages as-is
and add explicit "(int)" casts to the arguments.  There are some
fraction of these that are like that already.

            regards, tom lane



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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: Disable WAL logging to speed up data loading
Следующее
От: Dmitry Shulga
Дата:
Сообщение: Re: Reduce the time required for a database recovery from archive.