This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH/RFC] gag some compiler warnings


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]