mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Add casts to suppress warnings in system.c under [!_LIBC_REENTRANT].
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2012-08-14 Mike Frysinger <vapier@gentoo.org>
|
2012-08-14 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
|
* config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
|
||||||
|
@ -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.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
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)
|
if (__sigaction (SIGINT, &sa, &intr) < 0)
|
||||||
{
|
{
|
||||||
SUB_REF ();
|
(void) SUB_REF ();
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
if (__sigaction (SIGQUIT, &sa, &quit) < 0)
|
if (__sigaction (SIGQUIT, &sa, &quit) < 0)
|
||||||
{
|
{
|
||||||
save = errno;
|
save = errno;
|
||||||
SUB_REF ();
|
(void) SUB_REF ();
|
||||||
goto out_restore_sigint;
|
goto out_restore_sigint;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user