Skip to content

Commit

Permalink
remove unneeded export_all. in OTP20 it is a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tsloughter committed Jan 8, 2017
1 parent 4d2ab62 commit 69fbe53
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions priv/ec_semver_parser.peg
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,3 @@ version_part <- numeric_part / alpha_part ;

numeric_part <- [0-9]+ `erlang:list_to_integer(erlang:binary_to_list(erlang:iolist_to_binary(Node)))` ;
alpha_part <- [A-Za-z0-9]+ `erlang:iolist_to_binary(Node)` ;

%% This only exists to get around a bug in erlang where if
%% warnings_as_errors is specified `nowarn` directives are ignored

`-compile(export_all).`
2 changes: 1 addition & 1 deletion src/ec_semver_parser.erl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
-define(p_zero_or_more,true).


-compile(export_all).

-spec file(file:name()) -> any().
file(Filename) -> case file:read_file(Filename) of {ok,Bin} -> parse(Bin); Err -> Err end.

Expand Down

0 comments on commit 69fbe53

Please sign in to comment.