Re: Compiler warning with 'fast' variable - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Compiler warning with 'fast' variable
Date
Msg-id 200904072321.n37NL1w07004@momjian.us
Whole thread Raw
In response to Re: Compiler warning with 'fast' variable  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > Tom Lane wrote:
> >> We could stick a volatile on it but I'd like to find out why this
> >> particular variable seems to need that.
> 
> > You ready for this;  changing 'bool' to 'int' supressed the warning:
> >     int     fast = PG_GETARG_BOOL(1);
> 
> Well, that's a compiler bug :-(.  Probably platform-specific, too,
> which is why I don't see it on HPPA.
> 
> I think that the above variant is the least ugly of the alternatives
> you show as working, and definitely less ugly than plastering volatile
> on it.

Well, let's leave it alone and see if anyone else find it;  I can mask
it on my end.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Compiler warning with 'fast' variable
Next
From: Alvaro Herrera
Date:
Subject: Re: A renewed plea for inclusion of zone.tab