bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

posix_spawn tweak


From: Bruno Haible
Subject: posix_spawn tweak
Date: Mon, 10 Nov 2008 12:48:25 +0100
User-agent: KMail/1.5.4

This fixes a gcc warning.


2008-11-10  Bruno Haible  <address@hidden>

        * 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

[Prev in Thread] Current Thread [Next in Thread]