From: Joel Brobecker Date: Tue, 12 Jan 2010 07:51:09 +0000 (+0000) Subject: Fix -Wunused warning in dec-thread.c. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=46ed2d6ff06a397f94f5568bf85438f8ed8859a0;p=binutils-gdb.git Fix -Wunused warning in dec-thread.c. * dec-thread.c (dec_thread_count_gdb_threads) (dec_thread_add_gdb_thread): Prevent -Wunused warning. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e377ad29750..54c9c4299c0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2010-01-12 Joel Brobecker + + 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 * ada-valprint.c (ada_print_floating): Remove trailing space. diff --git a/gdb/dec-thread.c b/gdb/dec-thread.c index 50832210a28..be6db4c0ac5 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; }