From: | Andres Freund <andres(at)anarazel(dot)de> |
---|---|
To: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: [COMMITTERS] pgsql: Close some holes in BRIN page assignment |
Date: | 2015-08-12 23:31:56 |
Message-ID: | 20150812233156.GF21836@awork2.anarazel.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-hackers |
On 2015-08-12 16:08:08 -0300, Alvaro Herrera wrote:
> Alvaro Herrera wrote:
> > Close some holes in BRIN page assignment
>
> buildfarm evidently didn't like this one :-(
clang seems to see a (the?) problem:
/home/andres/src/postgresql/src/backend/access/brin/brin_pageops.c:357:6: warning: variable 'extended' is used uninitialized whenever 'if'
condition is false [-Wsometimes-uninitialized]
if (!BufferIsValid(*buffer))
^~~~~~~~~~~~~~~~~~~~~~~
/home/andres/src/postgresql/src/backend/access/brin/brin_pageops.c:371:6: note: uninitialized use occurs here
if (extended)
^~~~~~~~
/home/andres/src/postgresql/src/backend/access/brin/brin_pageops.c:357:2: note: remove the 'if' if its condition is always true
if (!BufferIsValid(*buffer))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/andres/src/postgresql/src/backend/access/brin/brin_pageops.c:330:16: note: initialize the variable 'extended' to silence this warning
bool extended;
Looks to me like it's right. That also explains why it's failing on a
fairly random selection of platforms and compilers...
Andres
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2015-08-13 01:19:22 | pgsql: Undo mistaken tightening in join_is_legal(). |
Previous Message | Tom Lane | 2015-08-12 22:41:11 | Re: pgsql: Further fixes for degenerate outer join clauses. |
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2015-08-12 23:43:55 | Re: Macro nesting hell |
Previous Message | Robert Haas | 2015-08-12 23:31:44 | Re: Test code is worth the space |