This is the mail archive of the
mailing list for the GDB project.
Re: [RFA/TESTSUITE] build schedlock.c on 64-bit platforms
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Elena Zannoni <ezannoni at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Wed, 9 Apr 2003 09:13:29 -0400
- Subject: Re: [RFA/TESTSUITE] build schedlock.c on 64-bit platforms
- References: <email@example.com>
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
> 2003-04-08 Elena Zannoni <ezannoni at redhat dot com>
> * gdb.threads/schedlock.c: Cast to thread function argument to
> long, for 64-bit platforms.
MontaVista Software Debian GNU/Linux Developer