From ab409095d60031e3d654c4cbb94f3475cb7d3b68 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Sun, 12 Dec 2021 12:52:14 -0700 Subject: [PATCH] Fix a couple of unused-comparison clang warnings --- cde/programs/dtappbuilder/src/ab/attch_ed_stubs.c | 2 +- cde/programs/dtcm/server/reclotick.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cde/programs/dtappbuilder/src/ab/attch_ed_stubs.c b/cde/programs/dtappbuilder/src/ab/attch_ed_stubs.c index 700e3d493..43fcd5f27 100644 --- a/cde/programs/dtappbuilder/src/ab/attch_ed_stubs.c +++ b/cde/programs/dtappbuilder/src/ab/attch_ed_stubs.c @@ -1771,7 +1771,7 @@ populate_obj_menu( * Set the label of the menu items to be the names of the ABObj's */ for (i = 0, trav_open(&trav, parent, AB_TRAV_SALIENT_CHILDREN); - i < num_items_needed, (cur_obj = trav_next(&trav)) != NULL; ) + i < num_items_needed && (cur_obj = trav_next(&trav)) != NULL; ) { char *label; diff --git a/cde/programs/dtcm/server/reclotick.c b/cde/programs/dtcm/server/reclotick.c index 2aa203580..d1d7ddba2 100644 --- a/cde/programs/dtcm/server/reclotick.c +++ b/cde/programs/dtcm/server/reclotick.c @@ -141,7 +141,7 @@ ClosestTick( * to see if the duration needs to be updated. */ if (re->re_duration == RE_NOTSET) - (*res)->res_duration == RE_NOTSET; + (*res)->res_duration = RE_NOTSET; return closest_tick; }