summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2008-11-10 12:48:32 +0100
committerBruno Haible <bruno@clisp.org>2008-11-10 12:48:32 +0100
commit614ff64f8c5ddce71a53c7c7a34f048e7fad34fa (patch)
tree3ecaed3ead81d9bae82abc6a04fd55256df3c0d0 /lib
parent594e0a34a8054efcfb572e4bb2a3323e98e4667c (diff)
downloadgnulib-614ff64f8c5ddce71a53c7c7a34f048e7fad34fa.tar.gz
Fix a serious gcc warning.
Diffstat (limited to 'lib')
-rw-r--r--lib/spawni.c4
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