[erlang-questions] add compiler checked atoms

Richard Carlsson carlsson.richard@REDACTED
Sun Feb 5 22:23:12 CET 2012


On 02/05/2012 10:15 PM, Richard Carlsson wrote:
> If you specify the compiler option `warn_unused_atom' when compiling a
> module (you can put `-compile([warn_unused_atom]).' in the module if you
> want to enable the checking in that module only), you will get a warning
> for each atom that has not been explicitly declared.

I'm obviously too tired; that should be `warn_unknown_atom'.

     /Richard



More information about the erlang-questions mailing list