Permalink
Browse files

Warn about unused vars now that they are not generated

  • Loading branch information...
1 parent 03a316e commit 77ba1f6699ad3651760fa76700d56a7d3ad5aa28 @isakb isakb committed Apr 8, 2013
Showing with 0 additions and 7 deletions.
  1. +0 −6 src/neotoma.erl
  2. +0 −1 src/neotoma_parse.erl
View
@@ -63,12 +63,6 @@ validate_params(_,_, TransformModule, OutputFile) ->
generate_module_attrs(ModName) ->
["-module(",atom_to_list(ModName),").\n",
"-export([parse/1,file/1]).\n",
- % This option could be problematic if your grammar is broken in
- % some way, but hides warnings about unused parser combinators
- % and unused Node/Idx variables in your transform functions.
- % In a future version we should just emit the used combinators,
- % excluding the rest.
- "-compile(nowarn_unused_vars).\n",
"-compile({nowarn_unused_function,[p/4, p/5, p_eof/0, p_optional/1, p_not/1, p_assert/1, p_seq/1, p_and/1, p_choose/1, p_zero_or_more/1, p_one_or_more/1, p_label/2, p_string/1, p_anything/0, p_charclass/1, p_regexp/1, p_attempt/4, line/1, column/1]}).\n\n"].
-spec generate_entry_functions({iodata(),_}) -> iolist().
View
@@ -1,6 +1,5 @@
-module(neotoma_parse).
-export([parse/1,file/1]).
--compile(nowarn_unused_vars).
-compile({nowarn_unused_function,[p/4, p/5, p_eof/0, p_optional/1, p_not/1, p_assert/1, p_seq/1, p_and/1, p_choose/1, p_zero_or_more/1, p_one_or_more/1, p_label/2, p_string/1, p_anything/0, p_charclass/1, p_regexp/1, p_attempt/4, line/1, column/1]}).

0 comments on commit 77ba1f6

Please sign in to comment.