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.
This commit is contained in:
Michael Chastain 2004-08-27 11:13:28 +00:00
parent 45aa12b4ca
commit e5b2549632
3 changed files with 10 additions and 3 deletions

View File

@ -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>.

View File

@ -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)

View File

@ -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)