Re: New compiler warning - Mailing list pgsql-hackers

From Aleksander Alekseev
Subject Re: New compiler warning
Date
Msg-id CAJ7c6TNMnvYy3tEr+ZNo7YpSocfdoJ0sD7Vx_pnDX61KRUx6fQ@mail.gmail.com
Whole thread Raw
In response to New compiler warning  (Bruce Momjian <bruce@momjian.us>)
Responses Re: New compiler warning
List 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

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: New compiler warning
Next
From: Jelte Fennema
Date:
Subject: Re: Allow specifying a dbname in pg_basebackup connection string