numactl/0005-numactl.c-Remove-unused-variable.patch
buque 229e261e91 numactl.c: Fix merging of neighboring pages' policies in dump_shm
In addition to checking that the policies are equal, also check that
the nodes are equal, since the policies may be the same but apply to
different nodes.

Fixes #170
2023-06-19 20:26:20 +08:00

36 lines
977 B
Diff

From c09fefddf5474b393f262f92659134355d98c550 Mon Sep 17 00:00:00 2001
From: Honggyu Kim <honggyu.kp@gmail.com>
Date: Sat, 24 Dec 2022 03:19:14 +0000
Subject: [PATCH] numactl.c: Remove unused variable
This patch is to remove the following unused variable warning.
numactl.c: In function 'main':
numactl.c:425:14: warning: unused variable 'node' [-Wunused-variable]
425 | long node=-1;
| ^~~~
Since node is used nowhere inside the function so remove it.
Signed-off-by: Honggyu Kim <honggyu.kp@gmail.com>
Signed-off-by: buque <wuxu.wu@huawei.com>
---
numactl.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/numactl.c b/numactl.c
index 79b323b..47cbf39 100755
--- a/numactl.c
+++ b/numactl.c
@@ -422,7 +422,6 @@ static struct bitmask *numactl_parse_nodestring(char *s, int flag)
int main(int ac, char **av)
{
int c;
- long node=-1;
char *end;
char shortopts[array_len(opts)*2 + 1];
struct bitmask *mask = NULL;
--
2.33.0