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

From: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
To: Alexander Lakhin <exclusion(at)gmail(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Avoid unused value (src/fe_utils/print.c)
Date: 2023-06-03 12:46:04
Message-ID: CAEudQArM_4ehsyCJpcS+s3Ys8P_J9cY0t_Oh_C14h2LJQGfx2w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Em sáb., 3 de jun. de 2023 às 09:00, Alexander Lakhin <exclusion(at)gmail(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Julien Rouhaud 2023-06-03 12:50:16 Re: Should "REGRESS_OPTS = --temp-config" be working for 3rd party extensions?
Previous Message Aleksander Alekseev 2023-06-03 12:34:30 Re: [PATCH] Slight improvement of worker_spi.c example