summaryrefslogtreecommitdiff
path: root/job.c
diff options
context:
space:
mode:
Diffstat (limited to 'job.c')
-rw-r--r--job.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/job.c b/job.c
index a4dadb1..b3fef25 100644
--- a/job.c
+++ b/job.c
@@ -967,8 +967,9 @@ start_job_command (struct child *child)
#if !defined(_AMIGA) && !defined(WINDOWS32)
static int bad_stdin = -1;
#endif
- register char *p;
- int flags;
+ char *p;
+ /* Must be volatile to silence bogus GCC warning about longjmp/vfork. */
+ volatile int flags;
#ifdef VMS
char *argv;
#else