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:
parent
606b8d1a46
commit
46ed2d6ff0
|
@ -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>
|
||||
|
||||
* 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;
|
||||
|
||||
*count++;
|
||||
(void) *count++; /* The cast to void is to prevent a -Wunused warning. */
|
||||
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;
|
||||
|
||||
**listp = info;
|
||||
*listp++;
|
||||
(void) *listp++; /* The cast to void is to prevent a -Wunused warning. */
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue