Commit c821e1cb authored by Seblu's avatar Seblu

Replace unused assigment by a cast

This fix compilation error with clang like

clang -DHAVE_CONFIG_H -I.     -Wall -Wextra -std=c99 -pedantic -D_XOPEN_SOURCE=600 -pipe -Werror -DNDEBUG -O3 -MT exec_case.o -MD -MP -MF .deps/exec_case.Tpo -c -o exec_case.o `test -f 'src/exec/exec_case.c' || echo './'`src/exec/exec_case.c
src/exec/exec_case.c:18:8: error: explicitly assigning value of variable of type 's_case_node *' (aka 'struct case_node *') to itself [-Werror,-Wself-assign]
  node = node;
  ~~~~ ^ ~~~~
1 error generated.
parent 4625f3ad
......@@ -16,6 +16,6 @@ int builtin_export(char *argv[])
fprintf(stderr, "%s: export: not yet implemeted.\n", shell->name);
argv = argv;
(void) argv;
return 1;
......@@ -15,5 +15,5 @@ void exec_case(s_case_node *node)
//FIXME: code it
node = node;
(void) node;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment