Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

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

Closed
feckertson opened this issue Jan 31, 2019 · 2 comments

Comments

@feckertson
Copy link
Contributor

No description provided.

feckertson pushed a commit that referenced this issue Jan 31, 2019
@feckertson
Copy link
Contributor Author

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
Copy link
Contributor Author

Fixed with #11.

feckertson added a commit that referenced this issue Feb 2, 2019
* fix #9
* fix #10
* prepare for
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant