[ Charset ISO-8859-1 unsupported, converting... ]
> On Thu, 29 Jun 2000, Bruce Momjian wrote:
>
> > Can someone explain why 'volatile' is used in psql/mainloop.c?
>
> If you remove them then you get tons of warnings about variables possibly
> getting clobbered. The reason is the longjmp business that's going on when
> you press Control-C. (The fact that the variables would get clobbered is
> not critical since they're reinitialized immediately anyway, but who am I
> to argue with the compiler.)
Agreed.
-- Bruce Momjian | http://www.op.net/~candle pgman@candle.pha.pa.us | (610)
853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill,
Pennsylvania19026