Re: Bug in 4.0.5? EUI, no warning for unused procedures/functions
- Posted by mattlewis (admin) Feb 12, 2013
- 1469 views
There should be warnings about unused test1 and test3 shouldn't there?
It's not a bug because interpreted Euphoria was not designed to give warnings about un-referenced routines. You might like to create a ticket as nominate it as an enhancement request. If you do, I'd suggest that only private routines be involved and then only warned about when the -STRICT option is used.
The bind process has options to list routines that are not referenced.
While developing a program or module, it is very common to have routines that are not used yet. That is why I would suggest that the -STRICT option be used to trigger the warnings.
I will add that you also have the capability to generate a code coverage report. It's documented under testing (i.e., eutest), but you can use it with any interpreted program.
Matt