Re: pgsql: Silence compiler warning in nbtinsert.c. - Mailing list pgsql-committers

From Peter Geoghegan
Subject Re: pgsql: Silence compiler warning in nbtinsert.c.
Date
Msg-id CAH2-Wzk7hn9VAXrYx+6hpFKtNWtu5tUv-R59oymQApCjUPVH1g@mail.gmail.com
Whole thread Raw
In response to Re: pgsql: Silence compiler warning in nbtinsert.c.  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-committers
On Wed, Feb 26, 2020 at 3:07 PM Alvaro Herrera <alvherre@2ndquadrant.com> wrote:
> I'm seeing another one:
>
> /pgsql/source/master/src/backend/access/nbtree/nbtinsert.c: In function '_bt_insertonpg':
> /pgsql/source/master/src/backend/access/nbtree/nbtinsert.c:1231:4: warning: 'oposting' may be used uninitialized in
thisfunction [-Wmaybe-uninitialized]
 
>     memcpy(oposting, nposting, MAXALIGN(IndexTupleSize(nposting)));
>     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Fixed - Thanks.

-- 
Peter Geoghegan



pgsql-committers by date:

Previous
From: Peter Geoghegan
Date:
Subject: pgsql: Silence another compiler warning in nbtinsert.c.
Next
From: Michael Paquier
Date:
Subject: pgsql: createdb: Fix quoting of --encoding, --lc-ctype and --lc-collate