From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Report progress of CREATE INDEX operations
Date: Tue, 2 Apr 2019 16:04:31 -0300
Message-ID: <20190402190431.GA22549@alvherre.pgsql> (raw)
In-Reply-To: <20190402190003.esiyxbmnm63jlydd@alap3.anarazel.de>
On 2019-Apr-02, Andres Freund wrote:
> Note that longfin complains about something different than the output
> files:
>
> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=longfin&dt=2019-04-02%2018%3A49%3A03
>
> lmgr.c:882:14: error: variable 'count' is used uninitialized whenever '?:' condition is false [-Werror,-Wsometimes-uninitialized]
> progress ? &count : NULL));
> ^~~~~~~~
> lmgr.c:883:12: note: uninitialized use occurs here
> total += count;
> ^~~~~
> lmgr.c:882:14: note: remove the '?:' if its condition is always true
> progress ? &count : NULL));
> ^~~~~~~~~~~ ~~~~~~~
> lmgr.c:878:14: note: initialize the variable 'count' to silence this warning
> int count;
> ^
Had noticed, thanks. Just pushed a blind fix for that ...
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: alvherre@2ndquadrant.com, andres@anarazel.de
Subject: Re: pgsql: Report progress of CREATE INDEX operations
In-Reply-To: <20190402190431.GA22549@alvherre.pgsql>
References: <20190402190003.esiyxbmnm63jlydd@alap3.anarazel.de> <20190402190431.GA22549@alvherre.pgsql>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox