eproxus/meck — pull request #63 by shino (2012-04-29 14:59:39+00:00)
Title: Fix compile forms error when mock up both behaviour_info and its callback modules

When mock up both behaviour_info and its callback modules,
an error(precisely speaking, a waning) occurs when compiling
a callback module to backup it.

1. When compiling a callback module, compiler can not find
behaviour_info/1 since it is already mocked away.
2. If warnings_as_errors exists in compile options,
the warning turns into an error.

In this pull request, I filter out the warnings_as_errors option
when backup original module.
I think this has no drawbacks because warnings are treated before
eunit runs.