diff options
author | Joel Brobecker <brobecker@gnat.com> | 2010-01-12 07:51:09 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2010-01-12 07:51:09 +0000 |
commit | 46ed2d6ff06a397f94f5568bf85438f8ed8859a0 (patch) | |
tree | ebf7b831cfb7be136875aed0b767a92b3635cf2e /gdb | |
parent | 606b8d1a462b6583048ce58ddd8b116c1a8f8d7b (diff) | |
download | gdb-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')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/dec-thread.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e377ad2..54c9c42 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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> 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; } |