From 475f729a364ce92999f67adba4d754babe12a266 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Tue, 8 Sep 2020 14:58:29 +0200 Subject: [PATCH] Resolve unused variable on FreeBSD --- freebsd/FreeBSDProcessList.c | 2 -- freebsd/Platform.c | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/freebsd/FreeBSDProcessList.c b/freebsd/FreeBSDProcessList.c index 6318d424..06e729c8 100644 --- a/freebsd/FreeBSDProcessList.c +++ b/freebsd/FreeBSDProcessList.c @@ -247,7 +247,6 @@ static inline void FreeBSDProcessList_scanMemoryInfo(ProcessList* pl) { u_long totalMem; u_int memActive, memWire, cachedMem; long buffersMem; - uint64_t memZfsArc; size_t len; //disabled for now, as it is always smaller than phycal amount of memory... @@ -383,7 +382,6 @@ void ProcessList_goThroughEntries(ProcessList* this) { FreeBSDProcessList_scanMemoryInfo(this); FreeBSDProcessList_scanCPUTime(this); - int cpus = this->cpuCount; int count = 0; struct kinfo_proc* kprocs = kvm_getprocs(fpl->kd, KERN_PROC_PROC, 0, &count); diff --git a/freebsd/Platform.c b/freebsd/Platform.c index c51b37cb..df664ae5 100644 --- a/freebsd/Platform.c +++ b/freebsd/Platform.c @@ -205,10 +205,12 @@ void Platform_setZfsCompressedArcValues(Meter* this) { } void Platform_setTasksValues(Meter* this) { + (void) this; // TODO } char* Platform_getProcessEnv(pid_t pid) { + (void) pid; // TODO return NULL; }