mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 19:20:12 +01:00
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 <gert.wollny@collabora.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
33f4e8a043
commit
8a6e3f0c5d
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ extern "C" {
|
|||
|
||||
|
||||
struct util_cpu_caps {
|
||||
unsigned nr_cpus;
|
||||
int nr_cpus;
|
||||
|
||||
/* Feature flags */
|
||||
int x86_cpu_type;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue