OSDN Git Service

util: Fix warning in u_cpu_detect on non-x86
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sun, 11 Nov 2018 19:09:40 +0000 (11:09 -0800)
committerMatt Turner <mattst88@gmail.com>
Mon, 12 Nov 2018 18:28:04 +0000 (10:28 -0800)
commit41c8f991379d1a714cb6c161edfacca1dd296d87
tree9e38370ef0a4f1f2a3659fa1dbeb4b662942e245
parent9c2a95b29868f1388408b5eb9193fff39f942217
util: Fix warning in u_cpu_detect on non-x86

regs is only set and used on x86; on other platforms (like ARM), this
code causes a trivial warning, solved by moving the regs declaration to
the architecture-dependent usage.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
src/util/u_cpu_detect.c