[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RFC: mail/nail an MUA



On Mon, Jul 22, 2002 at 07:27:20PM +0000, Christian Weisgerber wrote:

<snip>

> > there are no compiler warnings using the default CFLAGS, but there
> > are some warnings if i add -Wall .  i have a log of the build.
> > a few unused variables...  also various warnings to the effect of
> > clobbered by `longjmp' or `vfork'...  any recommendations???
> 
> These can probably be ignored.

To quote style(9):

"When using longjmp() or vfork() in a program, the -W or -Wall flag
should be used to verify that that compiler does not generate warnings
such as warning: variable `foo' might be clobbered by `longjmp' or `vfork'.
If any warnings of this type occur you must apply the ``volatile''
specifier to the variable in question.  Failure to do so may result in
improper code generation when optimization is enabled."

Hence, it could give some problems.

// haver