Re: Avoid unused value (src/fe_utils/print.c)

Ranier Vilela <ranier.vf@gmail.com>

From: Ranier Vilela <ranier.vf@gmail.com>
To: Alexander Lakhin <exclusion@gmail.com>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2023-06-03T12:46:04Z
Lists: pgsql-hackers
Em sáb., 3 de jun. de 2023 às 09:00, Alexander Lakhin <exclusion@gmail.com>
escreveu:

> Hello Ranier,
>
> 03.06.2023 13:14, Ranier Vilela wrote:
> > Hi,
> >
> > This is for Postgres 17 (head).
> >
> > Per Coverity.
> > At function print_unaligned_text, variable "need_recordsep", is
> > unnecessarily set to true and false.
>
> Clang' scan-build detects 58 errors "Dead assignment", including that one.
> Maybe it would be more sensible to eliminate all errors of this class?
>
Hi Alexander,

Sure.
I hope that when you or I are a committer,
we can fix a whole class of bugs together.

best regards,
Ranier Vilela