Re: New compiler warning

From: Aleksander Alekseev <aleksander(at)timescale(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, Peter Eisentraut <peter(at)eisentraut(dot)org>
Subject: Re: New compiler warning
Date: 2023-08-30 12:10:20
Message-ID: CAJ7c6TNMnvYy3tEr+ZNo7YpSocfdoJ0sD7Vx_pnDX61KRUx6fQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

> I am seeing a new gcc 12.2.0 compiler warning from
> src/backend/commands/sequence.c:

Yep, the compiler is just not smart enough to derive that this
actually is not going to happen.

Here is a proposed fix.

--
Best regards,
Aleksander Alekseev

Attachment Content-Type Size
v1-0001-Silence-GCC-12-warning.patch application/octet-stream 942 bytes

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jelte Fennema 2023-08-30 12:11:07 Re: Allow specifying a dbname in pg_basebackup connection string
Previous Message Bruce Momjian 2023-08-30 11:55:28 New compiler warning