[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RFC: mail/nail an MUA
- To: Christian Weisgerber <naddy@mips.inka.de>
- Subject: Re: RFC: mail/nail an MUA
- From: Srebrenko Sehic <haver@insecure.dk>
- Date: Mon, 22 Jul 2002 21:49:33 +0200
- Cc: tech@openbsd.org
- Content-Disposition: inline
- References: <3D3BFB0F.nail1OR2763U6@sdf.lonestar.org> <ahhmao$1tdd$1@kemoauc.mips.inka.de>
- User-Agent: Mutt/1.4i
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