Re: [PATCH] byteorder: silence warning by use the proper type

From: Dan Carpenter
Date: Wed Jan 24 2018 - 16:22:20 EST


On Wed, Jan 24, 2018 at 05:07:25PM -0200, rodrigosiqueira wrote:
> This patch fixes the GCC warning:
>
> warning: comparison between signed and unsigned integer expressions
> [-Wsign-compare]
> for (i = 0; i < len; i++)
> ^

I wish GCC wouldn't generate warnings which are clearly dumb. :( This
kind of warning has a over 99% false positive rate in finding real bugs.

regards,
dan carpenter