Peter Eisentraut has applied a patch to fix this.
---
On Wed, Aug 30, 2023 at 10:07:24AM -0400, David Steele wrote:
> On 8/30/23 08:10, Aleksander Alekseev wrote:
> >
> > > I am seeing a new gcc 12.2.0 compiler warning fro
On 8/30/23 08:10, Aleksander Alekseev wrote:
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.
Here's an alternate way to deal with this
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
v1-0001-Silence-GCC-12-warning.patch
Descri
I am seeing a new gcc 12.2.0 compiler warning from
src/backend/commands/sequence.c:
sequence.c: In function ‘DefineSequence’:
sequence.c:196:35: warning: ‘coldef’ may be used uninitialized
[-Wmaybe-uninitialized]
196 | stmt->tableElts = lappend(stmt->tabl
That approach seems fine. Thanks.--
Peter Geoghegan
I just noticed that if I build without asserts on my Mac laptop
(using Apple's latest clang, 13.1.6) I get
nbtdedup.c:68:8: warning: variable 'pagesaving' set but not used
[-Wunused-but-set-variable]
Sizepagesaving = 0;
^
1 warning generated.
Apparentl
I see that buildfarm member caiman is generating a warning [1]:
jsonb_plpython.c: In function \xe2\x80\x98PLyObject_ToJsonbValue\xe2\x80\x99:
cc1: warning: function may return address of local variable
[-Wreturn-local-addr]
jsonb_plpython.c:413:13: note: declared here
413 | JsonbValue buf;