diff options
author | Bruno Haible <bruno@clisp.org> | 2008-11-10 12:48:32 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2008-11-10 12:48:32 +0100 |
commit | 614ff64f8c5ddce71a53c7c7a34f048e7fad34fa (patch) | |
tree | 3ecaed3ead81d9bae82abc6a04fd55256df3c0d0 /lib | |
parent | 594e0a34a8054efcfb572e4bb2a3323e98e4667c (diff) | |
download | gnulib-614ff64f8c5ddce71a53c7c7a34f048e7fad34fa.tar.gz |
Fix a serious gcc warning.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spawni.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/spawni.c b/lib/spawni.c index 0d0d418cb7..ea6555333d 100644 --- a/lib/spawni.c +++ b/lib/spawni.c @@ -133,6 +133,10 @@ __spawni (pid_t *pid, const char *file, /* 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 |