Re: [HACKERS] "may be unused" warnings for gcc

From: Andres Freund <andres(at)anarazel(dot)de>
To: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] "may be unused" warnings for gcc
Date: 2019-09-27 21:23:48
Message-ID: 20190927212348.3x5njykipgmnyru4@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On 2017-02-22 09:26:10 -0500, Peter Eisentraut wrote:
> On 2/21/17 22:17, Andres Freund wrote:
> > I've not run comparisons this year, but late last year I was seeing > 5%
> > < 10% benefits - that seems plenty enough to care.
>
> You mean the 5-minute benchmarks on my laptop are not representative? ;-)
>
> Here is a patch that I had lying around that clears the compiler
> warnings under -O3 for me. It seems that they are a subset of what you
> are seeing. Plausibly, as compilers are doing more analysis in larger
> scopes, we can expect to see more of these.

I pushed the subset that I still see locally with gcc -O3.

Greetings,

Andres Freund

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2019-09-27 21:32:34 Re: ECPG installcheck tests fail if PGDATABASE is set
Previous Message David Steele 2019-09-27 19:57:27 Re: recovery starting when backup_label exists, but not recovery.signal