From 80a30a59e9cdf00c70b77ad7385f3c4da4687e68 Mon Sep 17 00:00:00 2001 From: Hannes Mehnert Date: Thu, 16 Jan 2025 11:21:19 +0100 Subject: [PATCH] avoid unused parameter warnings --- src/native/entropy_cpu_stubs.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/native/entropy_cpu_stubs.c b/src/native/entropy_cpu_stubs.c index 68876cda..7a1e06e9 100644 --- a/src/native/entropy_cpu_stubs.c +++ b/src/native/entropy_cpu_stubs.c @@ -239,6 +239,8 @@ CAMLprim value mc_cpu_rdseed (value buf, value off) { return Val_bool (ok); #else /* ARM: CPU-assisted randomness here. */ + (void)buf; + (void)off; return Val_bool (0); #endif } @@ -253,6 +255,8 @@ CAMLprim value mc_cpu_rdrand (value buf, value off) { return Val_bool (ok); #else /* ARM: CPU-assisted randomness here. */ + (void)buf; + (void)off; return Val_bool (0); #endif }