Re: pgsql: Silence compiler warning in nbtinsert.c.

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Peter Geoghegan <pg(at)bowt(dot)ie>
Cc: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql: Silence compiler warning in nbtinsert.c.
Date: 2020-02-26 23:07:48
Message-ID: 20200226230748.GA28775@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

On 2020-Feb-26, Peter Geoghegan wrote:

> Silence compiler warning in nbtinsert.c.
>
> Per buildfarm member longfin.

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 this function [-Wmaybe-uninitialized]
memcpy(oposting, nposting, MAXALIGN(IndexTupleSize(nposting)));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Thanks

--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2020-02-26 23:14:32 pgsql: Suppress unnecessary RelabelType nodes in more cases.
Previous Message Alvaro Herrera 2020-02-26 22:59:34 pgsql: Fix docs regarding AFTER triggers on partitioned tables