* job.c (child_execute_job): [SV 49938] Avoid spurious GCC warning.
diff --git a/job.c b/job.c
index 7d900ce..8124897 100644
--- a/job.c
+++ b/job.c
@@ -2121,11 +2121,11 @@
 int
 child_execute_job (struct output *out, int good_stdin, char **argv, char **envp)
 {
-  int r;
-  int pid;
-  int fdin = good_stdin ? FD_STDIN : get_bad_stdin ();
+  const int fdin = good_stdin ? FD_STDIN : get_bad_stdin ();
   int fdout = FD_STDOUT;
   int fderr = FD_STDERR;
+  int r;
+  int pid;
 
   /* Divert child output if we want to capture it.  */
   if (out && out->syncout)