Re: [RFA/TESTSUITE] build schedlock.c on 64-bit platforms

Daniel Jacobowitz
2003-04-09T13:13:33Z

On Tue, Apr 08, 2003 at 05:20:19PM -0400, Elena Zannoni wrote:
>
> I was getting warnings when compiling the test on 64-bit because of the casts.
>
> /home/ezannoni/gdb-sources/src/gdb/testsuite/gdb.threads/schedlock.c: In function `main':
> /home/ezannoni/gdb-sources/src/gdb/testsuite/gdb.threads/schedlock.c:21: warning: cast to pointer from integer of different size
> /home/ezannoni/gdb-sources/src/gdb/testsuite/gdb.threads/schedlock.c:26: warning: cast to pointer from integer of different size
> /home/ezannoni/gdb-sources/src/gdb/testsuite/gdb.threads/schedlock.c: In function `thread_function':
> /home/ezannoni/gdb-sources/src/gdb/testsuite/gdb.threads/schedlock.c:32: warning: cast from pointer to integer of different size
>
>
> Michael, Daniel?

Sigh, I was just sloppy writing this one. Does it work if you pass
&args[i] instead of messing with my_number? That's a little more
portable.

> 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
>
> * gdb.threads/schedlock.c: Cast to thread function argument to
> long, for 64-bit platforms.

--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer