This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] powerpc: Fix compiler warning on some syscalls
- From: Paul Eggert <eggert at cs dot ucla dot edu>
- To: Adhemerval Zanella <azanella at linux dot vnet dot ibm dot com>, Andreas Schwab <schwab at linux-m68k dot org>
- Cc: "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Tue, 06 Jan 2015 07:55:12 -0800
- Subject: Re: [PATCH] powerpc: Fix compiler warning on some syscalls
- Authentication-results: sourceware.org; auth=none
- References: <54ABDECE dot 3030306 at linux dot vnet dot ibm dot com> <87387ot233 dot fsf at igel dot home> <54ABFAD6 dot 8020008 at linux dot vnet dot ibm dot com>
On 01/06/2015 07:10 AM, Adhemerval Zanella wrote:
Does &tvp[0] work instead?
>
>Andreas.
>
It does and I think using would not require an explicit comment about it
usage. Would it be a preferable solution?
Absolutely. Casts are too powerful and can get one into trouble too easily.