Re: New compiler warning

2023-08-30 Thread Bruce Momjian
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

Re: New compiler warning

2023-08-30 Thread David Steele
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

Re: New compiler warning

2023-08-30 Thread Aleksander Alekseev
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

New compiler warning

2023-08-30 Thread Bruce Momjian
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

Re: New compiler warning from btree dedup code

2022-04-06 Thread Peter Geoghegan
That approach seems fine. Thanks.-- Peter Geoghegan

New compiler warning from btree dedup code

2022-04-06 Thread Tom Lane
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

New compiler warning in jsonb_plpython.c

2020-01-27 Thread Tom Lane
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;