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

From Alvaro Herrera
Subject Re: pgsql: Silence compiler warning in nbtinsert.c.
Date
Msg-id 20200226230748.GA28775@alvherre.pgsql
Whole thread Raw
In response to pgsql: Silence compiler warning in nbtinsert.c.  (Peter Geoghegan <pg@bowt.ie>)
Responses Re: pgsql: Silence compiler warning in nbtinsert.c.  (Peter Geoghegan <pg@bowt.ie>)
List 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
thisfunction [-Wmaybe-uninitialized]
 
    memcpy(oposting, nposting, MAXALIGN(IndexTupleSize(nposting)));
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Thanks

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



pgsql-committers by date:

Previous
From: Alvaro Herrera
Date:
Subject: pgsql: Fix docs regarding AFTER triggers on partitioned tables
Next
From: Tom Lane
Date:
Subject: pgsql: Suppress unnecessary RelabelType nodes in more cases.