warn_unused_vars

Richard Carlsson richardc@REDACTED
Wed Feb 5 18:39:47 CET 2003


On Wed, 5 Feb 2003, Goran Bage wrote:

> >>To get around this problem I have set
> >>ERL_COMPILER_OPTIONS
> >>to
> >>'[warn_unused_vars,nowarn_shadow_vars]'
> >>in my unix-shell.
> 
> Hmm, just tried it but there is something fishy with list
> comprehensions, the following will give a warning that App is unused.
> 
> get_creds(Users, App) ->
>      [ get_cred(User, App) || User <- Users ].


That was a bug in the linter, but it has been fixed, at least in R9.

	/Richard


Richard Carlsson (richardc@REDACTED)   (This space intentionally left blank.)
E-mail: Richard.Carlsson@REDACTED	WWW: http://user.it.uu.se/~richardc/




More information about the erlang-questions mailing list