On Mon, Oct 24, 2016 at 2:58 PM, Alexander Korotkov <
a(dot)korotkov(at)postgrespro(dot)ru> wrote:
> I have following warning while compiling with clang.
>
> walmethods.c:437:9: warning: comparison of unsigned expression < 0 is
> always false [-Wtautological-compare]
> if (r < 0)
> ~ ^ ~
> 1 warning generated.
>
> It seems that 'r' should be 'ssize_t' instead of 'size_t'.
>
Yup. The result from tar_write() is ssize_t so it definitely should be.
Thanks, I've applied a fix.
//Magnus