diff --git a/regressions/ck_spinlock/benchmark/latency.h b/regressions/ck_spinlock/benchmark/latency.h index 8abc9fe..7c49919 100644 --- a/regressions/ck_spinlock/benchmark/latency.h +++ b/regressions/ck_spinlock/benchmark/latency.h @@ -53,7 +53,7 @@ main(void) #endif uint64_t s_b, e_b, i; - int core = 0; + CK_CC_UNUSED int core = 0; s_b = rdtsc(); for (i = 0; i < STEPS; ++i) { diff --git a/regressions/ck_spinlock/benchmark/throughput.h b/regressions/ck_spinlock/benchmark/throughput.h index c7271b2..7851c50 100644 --- a/regressions/ck_spinlock/benchmark/throughput.h +++ b/regressions/ck_spinlock/benchmark/throughput.h @@ -70,7 +70,7 @@ LOCK_DEFINE; CK_CC_USED static void gen_lock(void) { - int core = 0; + CK_CC_UNUSED int core = 0; #ifdef LOCK_STATE LOCK_STATE; #endif