| From: | Amit Langote <amitlangote09(at)gmail(dot)com> | 
|---|---|
| To: | Erik Rijkers <er(at)xs4all(dot)nl> | 
| Cc: | Amit Langote <amitlan(at)postgresql(dot)org>, pgsql-committers(at)lists(dot)postgresql(dot)org | 
| Subject: | Re: pgsql: Add basic JSON_TABLE() functionality | 
| Date: | 2024-04-04 13:07:18 | 
| Message-ID: | CA+HiwqEzQ05+konL3N2y9CzwY=jOwDBQSFpbyfrukkZpWJpCZw@mail.gmail.com | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-committers | 
Hi Erik
On Thu, Apr 4, 2024 at 9:30 PM Erik Rijkers <er(at)xs4all(dot)nl> wrote:
> Op 4/4/24 om 13:21 schreef Amit Langote:
> > Add basic JSON_TABLE() functionality
> >
>
> Great that it's now committed. Congrats!
>
>
> There is one 'uninitialized' muttering during compile (gcc 13.2.0):
>
> In function ‘transformJsonFuncExpr’,
>      inlined from ‘transformExprRecurse’ at parse_expr.c:373:13:
> parse_expr.c:4317:34: warning: ‘default_format’ may be used
> uninitialized [-Wmaybe-uninitialized]
>   4317 |         jsexpr->formatted_expr = transformJsonValueExpr(pstate,
> func_name,
>        |
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>   4318 |
>                                          func->context_item,
>        |
>                                          ~~~~~~~~~~~~~~~~~~~
>   4319 |
>                                          default_format,
>        |
>                                          ~~~~~~~~~~~~~~~
>   4320 |
>                                          JSONBOID,
>        |
>                                          ~~~~~~~~~
>   4321 |
>                                          false);
>        |
>                                          ~~~~~~
> parse_expr.c: In function ‘transformExprRecurse’:
> parse_expr.c:4257:24: note: ‘default_format’ was declared here
>   4257 |         JsonFormatType default_format;
>        |                        ^~~~~~~~~~~~~~
Thanks for the report. Pushed a fix.
--
Thanks, Amit Langote
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Amit Langote | 2024-04-04 13:20:31 | Re: pgsql: Add basic JSON_TABLE() functionality | 
| Previous Message | Amit Langote | 2024-04-04 13:06:23 | pgsql: Add missing initialization in transformJsonFuncExpr() |