File 0006-fix-build-warning.patch of Package erlang (Revision edef1c3c1951d71988e62cd4a09a5104)
Currently displaying revision edef1c3c1951d71988e62cd4a09a5104 , Show latest
28
1
From 62562409b3fd394bdb95fb657301bf45fbf0c4fe Mon Sep 17 00:00:00 2001
2
From: Led <ledest@gmail.com>
3
Date: Mon, 16 Feb 2015 10:50:54 +0200
4
Subject: [PATCH 12/12] fix build warning
5
6
memsup.c: In function 'get_basic_mem':
7
memsup.c:430:33: warning: unused variable 'pgSz' [-Wunused-variable]
8
---
9
lib/os_mon/c_src/memsup.c | 2 +-
10
1 file changed, 1 insertion(+), 1 deletion(-)
11
12
diff --git a/lib/os_mon/c_src/memsup.c b/lib/os_mon/c_src/memsup.c
13
index 117eda4..22a186a 100644
14
--- a/lib/os_mon/c_src/memsup.c
15
+++ b/lib/os_mon/c_src/memsup.c
16
17
static void
18
get_basic_mem(unsigned long *tot, unsigned long *used, unsigned long *pagesize){
19
#if defined(_SC_AVPHYS_PAGES) /* Does this exist on others than Solaris2? */
20
- unsigned long avPhys, phys, pgSz;
21
+ unsigned long avPhys, phys;
22
23
phys = sysconf(_SC_PHYS_PAGES);
24
avPhys = sysconf(_SC_AVPHYS_PAGES);
25
--
26
2.1.4
27
28