Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ kernelmemfs
mkfs
.gdbinit
.gdb_history
.depend
.history/
.vscode/
cscope.out
3 changes: 3 additions & 0 deletions sh.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ int fork1(void); // Fork but panics on failure.
void panic(char*);
struct cmd *parsecmd(char*);

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Winfinite-recursion"
// Execute cmd. Never returns.
void
runcmd(struct cmd *cmd)
Expand Down Expand Up @@ -129,6 +131,7 @@ runcmd(struct cmd *cmd)
}
exit();
}
#pragma GCC diagnostic pop

int
getcmd(char *buf, int nbuf)
Expand Down
4 changes: 2 additions & 2 deletions usertests.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ exectest(void)
}

void
nullptr(void)
nullptrtest(void)
{
printf(1, "null pointer test\n");
printf(1, "expect one killed process\n");
Expand Down Expand Up @@ -1648,7 +1648,7 @@ main(int argc, char *argv[])
pipe1();
preempt();
exitwait();
nullptr();
nullptrtest();

rmdot();
fourteen();
Expand Down