# HG changeset patch # User Bruno Haible # Date 1226317712 -3600 # Node ID 314278e7728f215c2e21a426cbb148726feb4b71 # Parent 5f9dc1e81f5e51990acb656831bfe5dfd6e3682d Fix a serious gcc warning. diff -r 5f9dc1e81f5e -r 314278e7728f ChangeLog --- a/ChangeLog Mon Nov 10 12:46:10 2008 +0100 +++ b/ChangeLog Mon Nov 10 12:48:32 2008 +0100 @@ -1,3 +1,7 @@ +2008-11-10 Bruno Haible + + * lib/spawni.c (__spawni): Force variable into the stack. + 2008-11-10 Bruno Haible Add support for Haiku. diff -r 5f9dc1e81f5e -r 314278e7728f lib/spawni.c --- a/lib/spawni.c Mon Nov 10 12:46:10 2008 +0100 +++ b/lib/spawni.c Mon Nov 10 12:48:32 2008 +0100 @@ -133,6 +133,10 @@ /* 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