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:
parent
ddd5868577
commit
afbc2e5a4a
1 changed files with 1 additions and 0 deletions
|
@ -449,6 +449,7 @@ static bool restore_cpu_affinity(void)
|
|||
#ifndef SET_CPU_AFFINITY
|
||||
static bool set_cpu_affinity(logical_cpu_t logical_cpu)
|
||||
{
|
||||
UNUSED(logical_cpu);
|
||||
static int warning_printed = 0;
|
||||
if (!warning_printed) {
|
||||
warning_printed = 1;
|
||||
|
|
Loading…
Reference in a new issue