From 871a9a1aaa59a9a857078b7a1fb734d0ef849e9d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 24 Aug 2024 10:09:33 +0200 Subject: Bug and warning fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- process.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'process.c') diff --git a/process.c b/process.c index 569afd8..9fd3357 100644 --- a/process.c +++ b/process.c @@ -275,6 +275,7 @@ have_sha_intrinsics(void) { static volatile int ret = -1; static volatile atomic_flag spinlock = ATOMIC_FLAG_INIT; + int a, b, c, d; if (ret != -1) return ret; @@ -284,7 +285,8 @@ have_sha_intrinsics(void) if (ret != -1) goto out; - int a = 7, b, c = 0, d; + a = 7; + c = 0; __asm__ volatile("cpuid" : "=a"(a), "=b"(b), "=c"(c), "=d"(d) : "a"(a), "c"(c)); if (!(b & (1 << 29))) { ret = 0; -- cgit v1.2.3-70-g09d2