useless assignment pointer argument

From: Gaetano Mendola <mendola(at)gmail(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: useless assignment pointer argument
Date: 2015-05-28 20:14:33
Message-ID: CAJycT5q2xa02M7h=hgnBbcmgyVbg_zHeOQnGB3qxRsmH6RjQhQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,
in the following spots:

src/backend/commands/explain.c:1692
src/backend/commands/explain.c:1874
src/backend/commands/explain.c:1986

there is the following assignment:

ancestors = list_delete_first(ancestors);

but it has no effect at all being that a function parameter and not used
anymore after the assignment itself.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2015-05-28 20:17:00 Re: useless assignment pointer argument
Previous Message Andrew Dunstan 2015-05-28 20:11:44 Re: RFC: Remove contrib entirely