This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Avoid deprecated sigblock in misc/tst-pselect.c
- From: OndÅej BÃlka <neleai at seznam dot cz>
- To: Joseph Myers <joseph at codesourcery dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Thu, 27 Nov 2014 17:00:34 +0100
- Subject: Re: Avoid deprecated sigblock in misc/tst-pselect.c
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot DEB dot 2 dot 10 dot 1411261656330 dot 854 at digraph dot polyomino dot org dot uk>
On Wed, Nov 26, 2014 at 04:57:12PM +0000, Joseph Myers wrote:
> misc/tst-pselect.c uses the deprecated sigblock interface, resulting
> in "tst-pselect.c:42:3: warning: 'sigblock' is deprecated (declared at
> ../signal/signal.h:189) [-Wdeprecated-declarations]". The choice of
> sigblock rather than sigprocmask has nothing to do with what this test
> is testing, so this patch changes it to use sigprocmask to avoid the
> warning.
>
> Tested for x86_64.
>
looks ok.