This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH/RFC] gag some compiler warnings
- From: Richard Henderson <rth at redhat dot com>
- To: Elena Zannoni <ezannoni at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Thu, 3 Jul 2003 09:49:55 -0700
- Subject: Re: [PATCH/RFC] gag some compiler warnings
- References: <16132.24210.943200.572653@localhost.redhat.com>
On Thu, Jul 03, 2003 at 12:49:22PM -0400, Elena Zannoni wrote:
> - (PTRACE_ARG3_TYPE) addr, 0);
> + (PTRACE_ARG3_TYPE) (long) addr, 0);
The Most Correct type is intptr_t, from <stdint.h>. Except
that's a C99 thing, and doesn't exist everywhere. You could
do something with configure...
Failing that, I think size_t is the best choice.
r~