[CRIU] error compiling cr_dump.c

Cyrill Gorcunov gorcunov at openvz.org
Fri Feb 10 09:04:33 EST 2012


On Fri, Feb 10, 2012 at 06:00:39PM +0400, Kir Kolyshkin wrote:
> [kir at kirpad crtools]$ make CC=clang
>   CC       cr-dump.o
> cr-dump.c:585:19: error: comparison of unsigned expression >= 0 is
> always true
>       [-Werror,-Wtautological-compare]
>         if (regs.orig_ax >= 0)
>             ~~~~~~~~~~~~ ^  ~
> 1 error generated.
> make: *** [cr-dump.o] Error 1
> 
> Indeed orig_ax is unsigned. I am too dumb (dump?) to fix it myself,
> so just bringing this to your attention.
> 

This should be test with -1U, i'll handle, thanks.

	Cyrill


More information about the CRIU mailing list