cerner / ccl-testing

A collection of maven plugins and their dependencies to perform CCL Unit tests and static analyses and to generate reports from the results.
Apache License 2.0
16 stars 11 forks source link

Whitenoise:2.0 fails to recognize function/subroutine calls wrapped in if statements. #9

Closed feckertson closed 5 years ago

feckertson commented 5 years ago

var0 is inappropriately flagged as an unused variable because the call to sub0 is not recognized.

create program prog
    declare var0 = i4
    subroutine(sub0(null) = i2)
        call echo(var0)
        return (TRUE)
    end
    if (sub0(null))
        call echo('sub0 success')
    endif
end go
feckertson commented 5 years ago

Fixed with #11.