Bug in 4.0.5? EUI, no warning for unused procedures/functions
- Posted by fizzpopsoft Feb 12, 2013
- 1517 views
Hello gents and ladies,
I don't see a ticket for this:
-- demo of bug where no warning is given for a unused procedure or function -- 12 Feb 2013 with Euphoria v4.0.5 rev 2012-10-11, id 362497032f33 -- using interpreter EUI -- with warning with type_check without profile with trace sequence public1 = "notimportant" integer public2 = 9 function test1(sequence seq1) integer i1 if compare(public1,seq1) = 0 then i1 = 1 else i1 = 0 end if return i1 end function procedure test3(sequence seq1) integer i1 if compare(public1,seq1) = 0 then i1 = 1 else i1 = 0 end if public2 = i1 end procedure procedure test2(sequence seq1) integer i1 i1 = 0 public2 = i1 end procedure procedure main() test2("garbage") sprintf("%d",{public2}) end procedure main()
There should be warnings about unused test1 and test3 shouldn't there?
Regards,
Alan