From f80222c15b47d8926f6b430bc07c395d94f1dcc0 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sun, 14 Jul 2013 19:18:46 -0400 Subject: Notify the compiler that exec_command() won't return. --- job.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'job.h') diff --git a/job.h b/job.h index c9902f0..ba785a7 100644 --- a/job.h +++ b/job.h @@ -131,11 +131,11 @@ int child_execute_job (int stdin_fd, int stdout_fd, char **argv, char **envp); void child_execute_job (int stdin_fd, int stdout_fd, char **argv, char **envp); #endif #ifdef _AMIGA -void exec_command (char **argv); +void exec_command (char **argv) __attribute__ ((noreturn)); #elif defined(__EMX__) int exec_command (char **argv, char **envp); #else -void exec_command (char **argv, char **envp); +void exec_command (char **argv, char **envp) __attribute__ ((noreturn)); #endif extern unsigned int job_slots_used; -- cgit v1.2.3