[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
warnings
Hi Julian,
> Here are some diffs to get rid of some warnings:
> 761c761
> < if (( r = (*fc.fs->getxattr)(&fc, &xattr) < 0 ))
> ---
> > if (0 != ( r = (*fc.fs->getxattr)(&fc, &xattr) < 0 ))
it seems that Pure C had a good reason to issue this warning: I guess that
the line should have been:
if ((r = (*fc.fs->getxattr)(&fc, &xattr)) < 0)
which is not the same, since the assigment operator has lower
precedence than the comparison operator.
Thierry.
- Follow-Ups:
- Re: warnings
- From: Julian Reschke <reschke@GOEDEL.UNI-MUENSTER.DE>
- References:
- PureC
- From: Julian Reschke <reschke@GOEDEL.UNI-MUENSTER.DE>