[rtems-tools commit] record-client.c: Ignore return value from visit()

Joel Sherrill joel at rtems.org
Thu Sep 30 16:07:38 UTC 2021


Module:    rtems-tools
Branch:    master
Commit:    7c37893893fe879c21724fbf7ffda3c50a1bd086
Changeset: http://git.rtems.org/rtems-tools/commit/?id=7c37893893fe879c21724fbf7ffda3c50a1bd086

Author:    Ryan Long <ryan.long at oarcorp.com>
Date:      Mon May 17 15:37:00 2021 -0400

record-client.c: Ignore return value from visit()

CID 1503011: Unchecked return value in resolve_hold_back().

Closes #4423

---

 trace/record/record-client.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/trace/record/record-client.c b/trace/record/record-client.c
index e1365fe..edc4ab3 100644
--- a/trace/record/record-client.c
+++ b/trace/record/record-client.c
@@ -192,7 +192,8 @@ static void resolve_hold_back(
       const rtems_record_item_64 *item;
 
       item = &per_cpu->items[ index ];
-      visit( ctx, item->event, item->data );
+
+      (void) visit( ctx, item->event, item->data );
     }
   }
 }



More information about the vc mailing list