Add missing return statements in
* gdb.threads/process-exit-status-is-leader-exit-status.c
* gdb.threads/next-fork-exec-other-thread.c
to fix 'no return statement' compiler warnings, e.g.:
process-exit-status-is-leader-exit-status.c: In function ‘start’:
process-exit-status-is-leader-exit-status.c:46:1: warning: no return
statement in function returning non-void [-Wreturn-type]
46 | }
| ^
Approved-By: Simon Marchi <simon.marchi@efficios.com>
waitpid (pid, NULL, 0);
usleep (5);
}
+
+ return NULL;
}
static void*
usleep (5); /* break here */
usleep (5); /* other line */
}
+
+ return NULL;
}
int
int thread_return_value = *(int *) arg;
do_exit (thread_return_value);
+ return NULL;
}
int