[PATCH] Compile without warning with gcc's -Wtype-limits, -Wempty-body

Поиск
Список
Период
Сортировка
От Andres Freund
Тема [PATCH] Compile without warning with gcc's -Wtype-limits, -Wempty-body
Дата
Msg-id 20130114232907.GD22155@awork2.anarazel.de
обсуждение исходный текст
Ответы Re: [PATCH] Compile without warning with gcc's -Wtype-limits, -Wempty-body  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Hi,

the attached trivial patch allows to compile with -Wtype-limits
-Wempty-body (or -Wextra -Wno-unused-parameter -Wno-sign-compare
-Wno-missing-field-initializers).

As the two fixes seem harmless, that seems to be a good idea. And the
recent "bug" (its not really that, but ...) in walsender.c shows that at
least -Wtype-limits is a sensible warning.

Independently from this patch, should we add -Wtype-limits to the
default parameters?

Greetings,

Andres Freund

--
 Andres Freund                       http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

Вложения

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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: s/size_t/off_t/ in sendTimeLineHistory
Следующее
От: Merlin Moncure
Дата:
Сообщение: Re: json api WIP patch