pgsql: Avoid inconsistent type declaration

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Avoid inconsistent type declaration
Date: 2013-06-25 20:45:07
Message-ID: E1Ura6t-0007Qx-PT@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/cb687c751c8d2e9eb097339f8920ca8fcf29fc47

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

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2013-06-26 04:05:26 pgsql: pg_receivexlog: Fix logic error
Previous Message Andrew Dunstan 2013-06-25 17:47:54 pgsql: Properly dump dropped foreign table cols in binary-upgrade mode.