Fix -Wunused warning in dec-thread.c.
authorJoel Brobecker <brobecker@gnat.com>
Tue, 12 Jan 2010 07:51:09 +0000 (07:51 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Tue, 12 Jan 2010 07:51:09 +0000 (07:51 +0000)
        * dec-thread.c (dec_thread_count_gdb_threads)
        (dec_thread_add_gdb_thread): Prevent -Wunused warning.

gdb/ChangeLog
gdb/dec-thread.c

index e377ad2..54c9c42 100644 (file)
@@ -1,5 +1,11 @@
 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.
 
 2010-01-12  Joel Brobecker  <brobecker@adacore.com>
index 5083221..be6db4c 100644 (file)
@@ -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;
 }