Re: Compiler warning with 'fast' variable

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Compiler warning with 'fast' variable
Date: 2009-04-07 23:21:01
Message-ID: 200904072321.n37NL1w07004@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Bruce Momjian <bruce(at)momjian(dot)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(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2009-04-07 23:22:52 Re: A renewed plea for inclusion of zone.tab
Previous Message Tom Lane 2009-04-07 23:09:33 Re: Compiler warning with 'fast' variable