forked from Imagelibrary/binutils-gdb
Fix -Wunused warning in dec-thread.c.
* dec-thread.c (dec_thread_count_gdb_threads)
(dec_thread_add_gdb_thread): Prevent -Wunused warning.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2010-01-12 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
|
Fix -Wunused warning in dec-thread.c.
|
||||||
|
* dec-thread.c (dec_thread_count_gdb_threads)
|
||||||
|
(dec_thread_add_gdb_thread): Prevent -Wunused warning.
|
||||||
|
|
||||||
2010-01-12 Joel Brobecker <brobecker@adacore.com>
|
2010-01-12 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
* ada-valprint.c (ada_print_floating): Remove trailing space.
|
* ada-valprint.c (ada_print_floating): Remove trailing space.
|
||||||
|
|||||||
@@ -352,7 +352,7 @@ dec_thread_count_gdb_threads (struct thread_info *ignored, void *context)
|
|||||||
{
|
{
|
||||||
int *count = (int *) context;
|
int *count = (int *) context;
|
||||||
|
|
||||||
*count++;
|
(void) *count++; /* The cast to void is to prevent a -Wunused warning. */
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -366,7 +366,7 @@ dec_thread_add_gdb_thread (struct thread_info *info, void *context)
|
|||||||
struct thread_info ***listp = (struct thread_info ***) context;
|
struct thread_info ***listp = (struct thread_info ***) context;
|
||||||
|
|
||||||
**listp = info;
|
**listp = info;
|
||||||
*listp++;
|
(void) *listp++; /* The cast to void is to prevent a -Wunused warning. */
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user