Commit 02a7fd41 authored by John van Groningen's avatar John van Groningen
Browse files

refactor cachingcompiler.c to prevent c compiler warnings

parent 57b69d5b
Pipeline #50761 passed with stage
in 14 seconds
......@@ -55,12 +55,15 @@ static int wait_for_child (pid_t pid, char *child_name, int *status_p)
result = WEXITSTATUS (stat);
#ifdef DEBUG
if (WIFSIGNALED(stat) != 0)
log_error ("%s signaled (%d)\n",child_name, (int) WTERMSIG(stat));
else if (WIFEXITED (stat))
log_error ("%s exited normally (%d)\n", child_name, (int) WEXITSTATUS(stat));
log_error ("%s exited abnormally (%d)\n",child_name, (int) result);
return result;
......@@ -127,6 +130,7 @@ static void cleanup_compiler_at_exit (void)
cleanup_compiler ();
static void cleanup_compiler_on_signal (int signal_no)
log_error ("cleanup_compiler_on_signal\n");
......@@ -141,6 +145,7 @@ static void child_died (int signal_no)
static void init_caching_compiler(void)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment