Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: 4.0.1-pre-1 on RH6.2



Bart Schaefer wrote:

> On Feb 17, 12:51am, Peter Stephenson wrote:
> } Subject: Re: 4.0.1-pre-1 on RH6.2
> }
> } "Bart Schaefer" wrote:
> } > 
> } > zftp.c: In function `zfgetline':
> } > zftp.c:730: warning: variable `added' might be clobbered by `longjmp'
> } 
> } These have always been there and I've never been able to understand what
> } it's talking about with those particular variables.
> 
> Ah, I see.  It's warning you which variables have been given register
> storage allocation by the compiler, and which therefore won't be unwound
> properly when longjmp() takes you back up the stack to the setjmp() spot.
> As long as none of those are referenced in the `if (setjmp(...)) { ... }'
> blocks (which appears to be true), everything should be OK.

Yes, I had a look at that, too , when I first saw it. We can get rid
of the warnings by sticking `volatile' before the declarations if we care.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author