aboutsummaryrefslogtreecommitdiff
path: root/gdb/dec-thread.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2010-01-12 07:51:09 +0000
committerJoel Brobecker <brobecker@gnat.com>2010-01-12 07:51:09 +0000
commit46ed2d6ff06a397f94f5568bf85438f8ed8859a0 (patch)
treeebf7b831cfb7be136875aed0b767a92b3635cf2e /gdb/dec-thread.c
parent606b8d1a462b6583048ce58ddd8b116c1a8f8d7b (diff)
downloadgdb-46ed2d6ff06a397f94f5568bf85438f8ed8859a0.zip
gdb-46ed2d6ff06a397f94f5568bf85438f8ed8859a0.tar.gz
gdb-46ed2d6ff06a397f94f5568bf85438f8ed8859a0.tar.bz2
Fix -Wunused warning in dec-thread.c.
* dec-thread.c (dec_thread_count_gdb_threads) (dec_thread_add_gdb_thread): Prevent -Wunused warning.
Diffstat (limited to 'gdb/dec-thread.c')
-rw-r--r--gdb/dec-thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dec-thread.c b/gdb/dec-thread.c
index 5083221..be6db4c 100644
--- a/gdb/dec-thread.c
+++ b/gdb/dec-thread.c
@@ -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;
}