mit-pdos / xv6-riscv

Xv6 for RISC-V
Other
6.52k stars 2.37k forks source link

Fix the error reporting problem of runcmd function during compilation… #219

Open jintongxu opened 5 months ago

jintongxu commented 5 months ago

When I enter make qemu to compile, an error in the runcmd function will be displayed, as shown in the following figure: 1 My solution: add attribute((noreturn)) above runcmd in user/sh.c. Increased compilation effect, successfully entered the terminal after compilation 2