pgsql: Avoid compiler warnings due to possibly unused variables

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Avoid compiler warnings due to possibly unused variables
Date: 2011-06-16 20:45:41
Message-ID: E1QXJRd-0008Pp-A3@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Avoid compiler warnings due to possibly unused variables

gcc 4.6 complains about these because of the new option
-Wunused-but-set-variable which comes in with -Wall, so cast them to
void, which avoids the warning.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/7357558fc8866e3a449aa9473c419b593d67b5b6

Modified Files
--------------
src/backend/nodes/read.c | 1 +
src/backend/nodes/readfuncs.c | 3 ++-
2 files changed, 3 insertions(+), 1 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2011-06-16 21:04:50 pgsql: Index tuple data arrays using Anum_xxx symbolic constants instea
Previous Message Peter Eisentraut 2011-06-16 19:45:53 pgsql: Start using flexible array members