This fixes a gcc warning.

2008-11-10  Bruno Haible  <[EMAIL PROTECTED]>

        * lib/spawni.c (__spawni): Force variable into the stack.

*** lib/spawni.c.orig   2008-11-10 12:47:34.000000000 +0100
--- lib/spawni.c        2008-11-10 03:37:16.000000000 +0100
***************
*** 133,138 ****
--- 133,142 ----
    /* Do this once.  */
    short int flags = attrp == NULL ? 0 : attrp->_flags;
  
+   /* Avoid gcc warning
+        "variable 'flags' might be clobbered by 'longjmp' or 'vfork'"  */
+   (void) &flags;
+ 
    /* Generate the new process.  */
  #if HAVE_VFORK
    if ((flags & POSIX_SPAWN_USEVFORK) != 0



Reply via email to