Re: Compiler warning with 'fast' variable

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

Bruce Momjian <bruce(at)momjian(dot)us> writes:
> Any idea why I am seeing this warning with the new pg_start_backup()
> 'fast' flag?

> xlog.c:6917: warning: variable `fast' might be clobbered by
> `longjmp' or `vfork'

> The line is in a PG_ENSURE_ERROR_CLEANUP() block. This is with gcc
> version 2.95.3.

That's pretty bizarre --- I don't see it here with gcc 2.95.3,
and there is no reason for such a warning to appear on a variable
that isn't changed during the function.

We could stick a volatile on it but I'd like to find out why this
particular variable seems to need that.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2009-04-07 23:04:39 Re: Compiler warning with 'fast' variable
Previous Message James Pye 2009-04-07 22:42:34 Re: Array types