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

From Alexander Lakhin
Subject Re: Avoid unused value (src/fe_utils/print.c)
Date
Msg-id 05a99ba8-81d5-de15-5f15-0d13045f5877@gmail.com
Whole thread Raw
In response to Avoid unused value (src/fe_utils/print.c)  (Ranier Vilela <ranier.vf@gmail.com>)
Responses Re: Avoid unused value (src/fe_utils/print.c)
Re: Avoid unused value (src/fe_utils/print.c)
List pgsql-hackers
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?

Best regards,
Alexander



pgsql-hackers by date:

Previous
From: Aleksander Alekseev
Date:
Subject: Should "REGRESS_OPTS = --temp-config" be working for 3rd party extensions?
Next
From: Tom Lane
Date:
Subject: Re: PostgreSQL 16 Beta 1 Released!