aboutsummaryrefslogtreecommitdiff
path: root/gdb/dec-thread.c
diff options
context:
space:
mode:
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;
}