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

Re: zle_thingy.c: variable "modsave" used before its value set



On Apr 12,  2:04am, Wayne Davison wrote:
> 
> The variable can't actually be used uninitialized -- the compiler just
> thinks it can.
> 
> If we want to get rid of the warning, I'd recommend making the struct
> static rather than initializing it to an unneeded value on every call.

Are you really sure that bin_zle_call() is not re-entrant?  Seems to me
that the whole point of modsave is that it is a stack variable.



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