1
0
mirror of https://github.com/simh/simh.git synced 2026-02-24 08:03:13 +00:00

SCP: Silence GCC optimizer warnings about unused function results

This commit is contained in:
Mark Pizzolato
2019-12-30 15:33:51 -08:00
parent 1d1fe6f329
commit b18912cda8
4 changed files with 10 additions and 10 deletions

View File

@@ -867,7 +867,7 @@ if (!simulator_panel) {
p->pidProcess = fork();
if (p->pidProcess == 0) {
close (0); close (1); close (2); /* make sure not to pass the open standard handles */
dup (dup (open ("/dev/null", O_RDWR))); /* open standard handles to /dev/null */
if (dup (dup (open ("/dev/null", O_RDWR)))) {}; /* open standard handles to /dev/null */
if (execlp (sim_path, sim_path, p->temp_config, NULL, NULL)) {
perror ("execl");
exit(errno);