summaryrefslogtreecommitdiff
path: root/libpthread/nptl_db/td_ta_thr_iter.c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2017-01-14 08:49:52 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2017-01-14 18:31:49 +0100
commit783d7405385ece1698601019d8220aff8082865b (patch)
tree85322b2e90aaf0d3d9dacb1144dd18bc686a7331 /libpthread/nptl_db/td_ta_thr_iter.c
parentff530271e47b68345aaecf939988d8a0e1823956 (diff)
nptl_db: fix gcc compiler warnings
Diffstat (limited to 'libpthread/nptl_db/td_ta_thr_iter.c')
-rw-r--r--libpthread/nptl_db/td_ta_thr_iter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libpthread/nptl_db/td_ta_thr_iter.c b/libpthread/nptl_db/td_ta_thr_iter.c
index 0f1b2bfd2..c01c3e031 100644
--- a/libpthread/nptl_db/td_ta_thr_iter.c
+++ b/libpthread/nptl_db/td_ta_thr_iter.c
@@ -29,6 +29,7 @@ iterate_thread_list (td_thragent_t *ta, td_thr_iter_f *callback,
td_err_e err;
psaddr_t next, ofs;
void *copy;
+ int descr_pri;
/* Test the state.
XXX This is incomplete. Normally this test should be in the loop. */
@@ -89,7 +90,7 @@ iterate_thread_list (td_thragent_t *ta, td_thr_iter_f *callback,
/* Now test whether this thread matches the specified conditions. */
/* Only if the priority level is as high or higher. */
- int descr_pri = ((uintptr_t) schedpolicy == SCHED_OTHER
+ descr_pri = ((uintptr_t) schedpolicy == SCHED_OTHER
? 0 : (uintptr_t) schedprio);
if (descr_pri >= ti_pri)
{