diff options
author | Michael Chastain <mec@google.com> | 2004-08-27 11:13:28 +0000 |
---|---|---|
committer | Michael Chastain <mec@google.com> | 2004-08-27 11:13:28 +0000 |
commit | e5b2549632217988c5fc4ef40c779e4089962f66 (patch) | |
tree | af355b75362be577f4bdc0b0eec838c5e5f56a57 /gdb/testsuite | |
parent | 45aa12b4ca686068ef07694b2d4176217bdfd648 (diff) | |
download | gdb-e5b2549632217988c5fc4ef40c779e4089962f66.zip gdb-e5b2549632217988c5fc4ef40c779e4089962f66.tar.gz gdb-e5b2549632217988c5fc4ef40c779e4089962f66.tar.bz2 |
2004-08-27 Michael Chastain <mec.gnu@mindspring.com>
Fix PR testsuite/1735.
* gdb.threads/schedlock.c (thread_function): Add a cast
to suppress a gcc warning.
* gdb.threads/thread-specific.c (thread_function): Likewise.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/testsuite/gdb.threads/schedlock.c | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.threads/thread-specific.c | 2 |
3 files changed, 10 insertions, 3 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index e8315a8..3060b32 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2004-08-27 Michael Chastain <mec.gnu@mindspring.com> + + Fix PR testsuite/1735. + * gdb.threads/schedlock.c (thread_function): Add a cast + to suppress a gcc warning. + * gdb.threads/thread-specific.c (thread_function): Likewise. + 2004-08-26 Michael Chastain <mec.gnu@mindspring.com> * gdb.base/unload.c: Include <stdlib.h>. diff --git a/gdb/testsuite/gdb.threads/schedlock.c b/gdb/testsuite/gdb.threads/schedlock.c index 0403dc0..2902282 100644 --- a/gdb/testsuite/gdb.threads/schedlock.c +++ b/gdb/testsuite/gdb.threads/schedlock.c @@ -1,6 +1,6 @@ /* This testcase is part of GDB, the GNU debugger. - Copyright 2002, 2003 Free Software Foundation, Inc. + Copyright 2002, 2003, 2004 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -52,7 +52,7 @@ int main() { void *thread_function(void *arg) { int my_number = (long) arg; - int *myp = &args[my_number]; + int *myp = (int *) &args[my_number]; /* Don't run forever. Run just short of it :) */ while (*myp > 0) diff --git a/gdb/testsuite/gdb.threads/thread-specific.c b/gdb/testsuite/gdb.threads/thread-specific.c index 88a462d..8839d72 100644 --- a/gdb/testsuite/gdb.threads/thread-specific.c +++ b/gdb/testsuite/gdb.threads/thread-specific.c @@ -53,7 +53,7 @@ int main() { void *thread_function(void *arg) { int my_number = (long) arg; - int *myp = &args[my_number]; + int *myp = (int *) &args[my_number]; /* Don't run forever. Run just short of it :) */ while (*myp > 0) |