Re: psql use of 'volatile'
От
Peter Eisentraut
Тема
Re: psql use of 'volatile'
Дата
Msg-id
Pine.GSO.4.02A.10006291833310.8364-100000@Rama.DoCS.UU.SE
Ответ на
psql use of 'volatile' (Bruce Momjian)
Список
Дерево обсуждения
psql use of 'volatile' Bruce Momjian <pgman@candle.pha.pa.us>
Re: psql use of 'volatile' Tom Lane <tgl@sss.pgh.pa.us>
Re: psql use of 'volatile' Peter Eisentraut <e99re41@DoCS.UU.SE>
Re: psql use of 'volatile' Bruce Momjian <pgman@candle.pha.pa.us>
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.) -- Peter Eisentraut Sernanders väg 10:115 peter_e@gmx.net 75262 Uppsala http://yi.org/peter-e/ Sweden
В списке pgsql-hackers по дате отправления