Re: pgsql: Don't initialize page in {vm,fsm}_extend(), not needed

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Andres Freund <andres(at)anarazel(dot)de>, pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql: Don't initialize page in {vm,fsm}_extend(), not needed
Date: 2023-04-05 23:34:02
Message-ID: ZC4Fagcr7zft5LZ9@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

On Wed, Apr 05, 2023 at 07:19:48PM -0400, Tom Lane wrote:
> freespace.c: In function \342\200\230fsm_extend\342\200\231:
> freespace.c:611:2: warning: missing braces around initializer [-Wmissing-braces]
> PGAlignedBlock pg = {0};
> ^
> freespace.c:611:2: warning: (near initialization for \342\200\230pg.data\342\200\231) [-Wmissing-braces]
>
> This is from buri, similar from curculio, dragonet, idiacanthus,
> xenodermus, etc

That's the same as d937904, it seems, requiring a {{0}}.
--
Michael

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2023-04-05 23:58:41 Re: pgsql: Don't initialize page in {vm,fsm}_extend(), not needed
Previous Message Tom Lane 2023-04-05 23:19:48 Re: pgsql: Don't initialize page in {vm,fsm}_extend(), not needed