Change the type of util_cpu_caps::nr_cpus to int because sysconfig returns a signed value, fixes:
u_cpu_detect.c: In function 'util_cpu_detect': u_cpu_detect.c:317:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (util_cpu_caps.nr_cpus == -1) Signed-off-by: Gert Wollny <gert.wol...@collabora.com> --- src/gallium/auxiliary/util/u_cpu_detect.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/util/u_cpu_detect.h b/src/gallium/auxiliary/util/u_cpu_detect.h index 4a34ac4d9a..7a63d55028 100644 --- a/src/gallium/auxiliary/util/u_cpu_detect.h +++ b/src/gallium/auxiliary/util/u_cpu_detect.h @@ -46,7 +46,7 @@ extern "C" { struct util_cpu_caps { - unsigned nr_cpus; + int nr_cpus; /* Feature flags */ int x86_cpu_type; -- 2.16.4 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev