This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Fix nptl/tst-cancel-self-cancelstate.c warning
- 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: Wed, 26 Nov 2014 17:01:52 +0100
- Subject: Re: Fix nptl/tst-cancel-self-cancelstate.c warning
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot DEB dot 2 dot 10 dot 1411261332200 dot 30398 at digraph dot polyomino dot org dot uk>
On Wed, Nov 26, 2014 at 01:32:52PM +0000, Joseph Myers wrote:
> This patch fixes "../sysdeps/nptl/pthread.h:670:26: warning:
> initialization discards 'volatile' qualifier from pointer target type"
> arising when building nptl/tst-cancel-self-cancelstate.c. The problem
> is passing a volatile int * to a macro expecting void *; the patch
> adds an explicit cast.
>
ok.