Skip to content

Commit

Permalink
numactl.c: Remove unused variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
honggyukim authored and andikleen committed Dec 26, 2022
1 parent 851bbd5 commit c09fefd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion numactl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c09fefd

Please sign in to comment.