nasa / bplib

Apache License 2.0
27 stars 13 forks source link

Cppcheck errors reported in common/src/v7_rbtree.c #193

Closed jphickey closed 1 year ago

jphickey commented 1 year ago

Describe the bug Initial manual run of cppcheck reported the following concerns:

Checking common/src/v7_rbtree.c ...
common/src/v7_rbtree.c:474:25: style: Variable 'node_is_left_side' is assigned a value that is never used. [unreadVariable]
    node_is_left_side   = false;
                        ^
common/src/v7_rbtree.c:1319:14: style: Variable 'curr_val' is assigned a value that is never used. [unreadVariable]
    curr_val = 0;
             ^

To Reproduce Execute cppcheck against source code

Expected behavior Should execute cleanly with no errors reported

System observed on: Ubuntu 22.04

Reporter Info Joseph Hickey, Vantage Systems, Inc.