Warning term [return]ed by compile:file/2 changed in R10B

Dominic Williams <>
Wed May 3 21:52:01 CEST 2006


The format of the warnings term returned by:


has changed in R10B, and is never empty even when there are no warnings.
E.g. on a file that compiles without warnings, previous versions returned:

{ok, foo, []}

while R10B returns:


E.g. on a file that compiles with several warnings:


foo(Arg) -> ok.

bar(Arg) -> Arg;
bar(5) -> hello.

baz(Arg) -> fun(Arg) -> Arg end.

Previous versions returned:


while R10B returns the more complicated:


(It's not that R10B warns about more things that is the problem, it's
that the warnings are spread across several lists, some of which are
returned even if they are empty.)


Dominic Williams


More information about the erlang-bugs mailing list