Re: Avoid unused value (src/fe_utils/print.c) - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Avoid unused value (src/fe_utils/print.c)
Date
Msg-id ZHvB8bGGNknkRUIg@paquier.xyz
Whole thread Raw
In response to Re: Avoid unused value (src/fe_utils/print.c)  (Alexander Lakhin <exclusion@gmail.com>)
Responses Re: Avoid unused value (src/fe_utils/print.c)
List pgsql-hackers
On Sat, Jun 03, 2023 at 03:00:01PM +0300, Alexander Lakhin wrote:
> Clang' scan-build detects 58 errors "Dead assignment", including that one.
> Maybe it would be more sensible to eliminate all errors of this class?

Depends on if this makes any code changed a bit easier to understand I
guess, so that would be a case-by-case analysis.  Saying that, the
proposed patch seems right while it makes slightly easier to
understand the footer print part.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: New Table Access Methods for Multi and Single Inserts
Next
From: Fabrízio de Royes Mello
Date:
Subject: Add test module for Table Access Method