Re: gcc 4.6 warnings in HEAD?

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: gcc 4.6 warnings in HEAD?
Date: 2011-08-10 17:49:57
Message-ID: 1312998597.24721.41.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On ons, 2011-08-10 at 12:37 -0400, Alvaro Herrera wrote:
> I'm seeing a bunch of warnings I don't remember seeing before in the
> master branch:
>
> /pgsql/source/HEAD/src/backend/executor/execQual.c: In function
> 'GetAttributeByNum':
> /pgsql/source/HEAD/src/backend/executor/execQual.c:1104:11: warning: the comparison will always evaluate as 'true' for the address of 'tmptup' will never be NULL [-Waddress]

Yes, these are new with gcc 4.6. I have filed a bug about them:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48778

All the other new warnings introduced by gcc 4.6 should be cleaned up by
now in the 9.2 branch. (There are more warnings in 9.1 whose fixes I
did not backpatch.) I am personally using

make COPT="-Werror -Wno-error=address"

to build PostgreSQL for the time being.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2011-08-10 17:52:28 SHOW command always returns text field
Previous Message Simon Riggs 2011-08-10 17:48:20 Re: Reduced power consumption in autovacuum launcher process