Mercurial > gnulib
changeset 30473:314278e7728f
Fix a serious gcc warning.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 10 Nov 2008 12:48:32 +0100 |
parents | 5f9dc1e81f5e |
children | 5ce52b4352af |
files | ChangeLog lib/spawni.c |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 <bruno@clisp.org> + + * lib/spawni.c (__spawni): Force variable into the stack. + 2008-11-10 Bruno Haible <bruno@clisp.org> Add support for Haiku.
--- 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