Commit c821e1cb authored by Seblu's avatar Seblu
Browse files

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -16,6 +16,6 @@ int builtin_export(char *argv[])
{
  assert(argv);
  fprintf(stderr, "%s: export: not yet implemeted.\n", shell->name);
  argv = argv;
  (void) argv;
  return 1;
}
+1 −1
Original line number Diff line number Diff line
@@ -15,5 +15,5 @@ void exec_case(s_case_node *node)
  assert(node);
  //FIXME: code it
  assert(0);
  node = node;
  (void) node;
}