erl_lint bug

Bjorn Gustavsson bjorn@REDACTED
Fri May 3 15:06:26 CEST 2002


We are aware of the problem, and we will fix it in R9.

Despite this little problem, I find the warn_unused_vars option to
be usable and worth turning on. So far I have found one minor bug
and several cases of unnecessary code and unused function arguments
in my code (in both OTP code and Wings code).

When writing new code, the warnings helped me to find typos quicker
than the usual method of staring at the suspect code sequence.


"Vlad Dumitrescu" <vlad_dumitrescu@REDACTED> writes:

> Hi,
> I noticed that erl_lint does wrongly report variables as unused if they only 
> appear as a generator in a list comprehension. For example,
> fun(X) -> [H || H <- X].
> reports X as unused.
> I would have loved to be able to send a patch, but these parts of the system 
> I haven't yet gathered the courage to dig in ;-)
> regards,
> Vlad
> _________________________________________________________________
> Chatta med kompisar online, prova MSN Messenger:

Björn Gustavsson            Ericsson Utvecklings AB
bjorn@REDACTED      ÄT2/UAB/F/P
			    BOX 1505
+46 8 727 56 87 	    125 25 Älvsjö

More information about the erlang-questions mailing list