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: [RFA/TESTSUITE] build schedlock.c on 64-bit platforms


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 at redhat dot com>
> 
> 	* gdb.threads/schedlock.c: Cast to thread function argument to
> 	long, for 64-bit platforms.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


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