pgsql: Avoid inconsistent type declaration

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема pgsql: Avoid inconsistent type declaration
Дата
Msg-id E1Ura6t-0007Qu-OR@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Avoid inconsistent type declaration

Clang 3.3 correctly complains that a variable of type enum
MultiXactStatus cannot hold a value of -1, which makes sense.  Change
the declared type of the variable to int instead, and apply casting as
necessary to avoid the warning.

Per notice from Andres Freund

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/4ca50e071024421e3b75bf7e48fda08141360636

Modified Files
--------------
src/backend/access/heap/heapam.c |   11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: pgsql: Properly dump dropped foreign table cols in binary-upgrade mode.
Следующее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: Avoid inconsistent type declaration