Browse Source

Fix missing sentinel warning in dts.cc when using gnu++17 standard

pull/1124/head
Weiwei Li 4 years ago
committed by Andrew Waterman
parent
commit
bc9ee3e427
  1. 2
      riscv/dts.cc

2
riscv/dts.cc

@ -174,7 +174,7 @@ std::string dts_compile(const std::string& dts)
close(dts_pipe[1]);
close(dtb_pipe[0]);
close(dtb_pipe[1]);
execlp(DTC, DTC, "-O", "dtb", 0);
execlp(DTC, DTC, "-O", "dtb", (char *)0);
std::cerr << "Failed to run " DTC ": " << strerror(errno) << std::endl;
exit(1);
}

Loading…
Cancel
Save