From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199802231437.JAA04904@rrdjazz.nist.gov> Date: Mon, 23 Feb 1998 09:37:14 -0500 From: Przemek Klosowski Subject: Re: gcc compiler warning I've got a program which gets the following warnings when I compile with -Wall. Can anyone tell me what this is trying to say? How would these varibles get "clobbered"? How can I prevent this? function `gpi_EvaluateGeneration': gpi.c:336: warning: variable `i' might be clobbered by `longjmp' or `vfork' Register-based local variables are not guaranteed to be preserved across longjump (and also I guess vfork); in other words if you do setjmp, and then longjmp to it, you aren't guaranteed to see the values of register-based local variables as they were at time of setjmp; this is because setjmp/longjmp save/restore the stack only. -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com