From: | Erik Rijkers <er(at)xs4all(dot)nl> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | gcc 15.1 warnings - jsonb_util.c |
Date: | 2025-04-25 15:05:15 |
Message-ID: | 988bf1bc-3f1f-99f3-bf98-222f1cd9dc5e@xs4all.nl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi,
Compiling gcc 15.1 utters these protests (at least, with
--enable-cassert) that I don't think I saw with gcc 14:
jsonb_util.c: In function ‘compareJsonbContainers’:
jsonb_util.c:301:34: warning: ‘va.type’ may be used uninitialized
[-Wmaybe-uninitialized]
301 | res = (va.type > vb.type) ? 1 : -1;
| ~~^~~~~
jsonb_util.c:202:33: note: ‘va’ declared here
202 | JsonbValue va,
| ^~
jsonb_util.c:301:44: warning: ‘vb.type’ may be used uninitialized
[-Wmaybe-uninitialized]
301 | res = (va.type > vb.type) ? 1 : -1;
| ~~^~~~~
jsonb_util.c:203:41: note: ‘vb’ declared here
203 | vb;
| ^~
Thanks,
Erik
From | Date | Subject | |
---|---|---|---|
Next Message | Andrei Lepikhov | 2025-04-25 15:13:26 | Re: MergeAppend could consider sorting cheapest child path |
Previous Message | wenhui qiu | 2025-04-25 15:04:12 | Re: Introduce some randomness to autovacuum |