Unused variable in postgres_fdw/deparse.c

From: Kyotaro HORIGUCHI <horiguchi(dot)kyotaro(at)lab(dot)ntt(dot)co(dot)jp>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Unused variable in postgres_fdw/deparse.c
Date: 2016-10-26 00:49:51
Message-ID: 20161026.094951.236564575.horiguchi.kyotaro@lab.ntt.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello, compiler complains about unused variable during build
postgres_fdw without assertions (!--enable-cassert).

deparse.c: In function ‘deparseFromExpr’:
deparse.c:1029:14: warning: unused variable ‘foreignrel’ [-Wunused-variable]
RelOptInfo *foreignrel = context->foreignrel;
^~~~~~~~~~

The attched patch removes it and moves into the assertion below it.

regards,

Attachment Content-Type Size
postgre_fdw_delete_unused_var.patch text/x-patch 691 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Langote 2016-10-26 01:06:14 Re: Declarative partitioning - another take
Previous Message Noah Misch 2016-10-26 00:41:13 Re: Wraparound warning