File 1146-os_mon-Fix-some-ununsed-variables.patch of Package erlang
From ab8c9a660834e404edea4f580c8d5ab4ef554c1c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lukas=20Backstr=C3=B6m?= <lukas@erlang.org>
Date: Mon, 28 Oct 2024 11:03:05 +0100
Subject: [PATCH 06/10] os_mon: Fix some ununsed variables
---
lib/os_mon/c_src/memsup.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/os_mon/c_src/memsup.c b/lib/os_mon/c_src/memsup.c
index ad4a193d99..9d08500e58 100644
--- a/lib/os_mon/c_src/memsup.c
+++ b/lib/os_mon/c_src/memsup.c
@@ -288,7 +288,6 @@ get_mem_procfs(memory_ext *me){
int fd, nread;
char buffer[4097];
char *bp;
- unsigned long value;
me->flag = 0;
@@ -494,7 +493,7 @@ get_extended_mem(memory_ext *me) {
static void
get_basic_mem(unsigned long *tot, unsigned long *used, unsigned long *pagesize){
#if defined(_SC_AVPHYS_PAGES) /* Does this exist on others than Solaris2? */
- unsigned long avPhys, phys, pgSz;
+ unsigned long avPhys, phys;
phys = sysconf(_SC_PHYS_PAGES);
avPhys = sysconf(_SC_AVPHYS_PAGES);
--
2.43.0