This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit/darwin] Fix casting to pointer of different size warning
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 16 Mar 2009 12:00:08 -0400
- Subject: [commit/darwin] Fix casting to pointer of different size warning
Hello,
Small warning cleanup. The warning shows up when building on x86_64-darwin.
2009-03-16 Joel Brobecker <brobecker@adacore.com>
* darwin-nat.c (darwin_resume): Fix a compiler warning when
building on x86_64-darwin.
Checked in.
--
Joel
Index: darwin-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/darwin-nat.c,v
retrieving revision 1.5
diff -u -p -r1.5 darwin-nat.c
--- darwin-nat.c 12 Mar 2009 22:29:30 -0000 1.5
+++ darwin-nat.c 16 Mar 2009 15:55:02 -0000
@@ -367,7 +367,7 @@ darwin_resume (struct target_ops *ops,
{
int nsignal = target_signal_to_host (signal);
res = PTRACE (PT_THUPDATE, pid,
- (void *)exc_msg.thread_port, nsignal);
+ (void *)(uintptr_t)exc_msg.thread_port, nsignal);
if (res < 0)
printf_unfiltered (_("ptrace THUP: res=%d\n"), res);
}