Mercurial > hg > octave-lyh > gnulib-hg
changeset 10782:f65529c86553
Fix a serious gcc warning.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 10 Nov 2008 12:48:32 +0100 |
parents | 20acc01fca51 |
children | 7f50373172eb |
files | ChangeLog lib/spawni.c |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -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 +++ b/lib/spawni.c @@ -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