This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[COMMITTED PATCH] warning suppression in system.c
- From: Roland McGrath <roland at hack dot frob dot com>
- To: libc-alpha at sourceware dot org
- Date: Wed, 15 Aug 2012 10:11:11 -0700 (PDT)
- Subject: [COMMITTED PATCH] warning suppression in system.c
2012-08-15 Roland McGrath <roland@hack.frob.com>
* sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
diff --git a/sysdeps/posix/system.c b/sysdeps/posix/system.c
index c4d65bf..5973b62 100644
--- a/sysdeps/posix/system.c
+++ b/sysdeps/posix/system.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2000,2002,2003,2005,2007 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -70,13 +70,13 @@ do_system (const char *line)
{
if (__sigaction (SIGINT, &sa, &intr) < 0)
{
- SUB_REF ();
+ (void) SUB_REF ();
goto out;
}
if (__sigaction (SIGQUIT, &sa, &quit) < 0)
{
save = errno;
- SUB_REF ();
+ (void) SUB_REF ();
goto out_restore_sigint;
}
}