Re: [PATCH] util: constant -1 with expression of type char

From: Namhyung Kim
Date: Wed Jun 26 2024 - 00:01:00 EST


On Thu, 20 Jun 2024 05:34:29 +0900, yskelg@xxxxxxxxx wrote:

> This patch resolve following warning.
>
> tools/perf/util/evsel.c:1620:9: error: result of comparison of constant
> -1 with expression of type 'char' is always false
> -Werror,-Wtautological-constant-out-of-range-compare
> 1620 | if (c == -1)
> | ~ ^ ~~
>
> [...]

Applied to perf-tools-next, thanks!

Best regards,
Namhyung