1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2024-11-10 22:59:13 +00:00

Hide a warning

/home/runner/work/libcpuid/libcpuid/libcpuid/cpuid_main.c:450:44: warning: unused parameter 'logical_cpu' [-Wunused-parameter]
static bool set_cpu_affinity(logical_cpu_t logical_cpu)
This commit is contained in:
The Tumultuous Unicorn Of Darkness 2024-08-03 12:38:19 +02:00
parent ddd5868577
commit afbc2e5a4a
No known key found for this signature in database
GPG key ID: 1E55EE2EFF18BC1A

View file

@ -449,6 +449,7 @@ static bool restore_cpu_affinity(void)
#ifndef SET_CPU_AFFINITY #ifndef SET_CPU_AFFINITY
static bool set_cpu_affinity(logical_cpu_t logical_cpu) static bool set_cpu_affinity(logical_cpu_t logical_cpu)
{ {
UNUSED(logical_cpu);
static int warning_printed = 0; static int warning_printed = 0;
if (!warning_printed) { if (!warning_printed) {
warning_printed = 1; warning_printed = 1;