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:
Joel Brobecker
2010-01-12 07:51:09 +00:00
parent 606b8d1a46
commit 46ed2d6ff0
2 changed files with 8 additions and 2 deletions

View File

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

View File

@@ -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;
} }