diff options
author | Gert Wollny <[email protected]> | 2018-06-05 13:59:06 +0200 |
---|---|---|
committer | Gert Wollny <[email protected]> | 2018-06-20 11:08:28 +0200 |
commit | 8a6e3f0c5daa196f39adbf842b356bfb00a8fd13 (patch) | |
tree | f449967b6a9b941eeb3f7daf97e945a5c8482d06 /src/gallium/auxiliary/util | |
parent | 33f4e8a04396e3b2b3a8fd79e79fc6f268ee9653 (diff) |
gallium/aux/util/u_cpu_detect.h: Fix -Wsign-compare warning in u_cpu_detect.c
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 <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r-- | src/gallium/auxiliary/util/u_cpu_detect.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_cpu_detect.h b/src/gallium/auxiliary/util/u_cpu_detect.h index 4a34ac4d9a6..7a63d550289 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; |