diff options
author | Hans Bolinder <[email protected]> | 2017-10-24 10:27:56 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2017-10-24 10:34:23 +0200 |
commit | e245c2fcfce63de29e80b3b0379fc92513b3b6a5 (patch) | |
tree | 15109091d00ff5b0e2af3c6af92d712e6217db1c | |
parent | 541ee20b9eaefed7802f08cecddfbd12e5f3b516 (diff) | |
download | otp-e245c2fcfce63de29e80b3b0379fc92513b3b6a5.tar.gz otp-e245c2fcfce63de29e80b3b0379fc92513b3b6a5.tar.bz2 otp-e245c2fcfce63de29e80b3b0379fc92513b3b6a5.zip |
parsetools: Fix unused functions warnings in leexinc.hrl
-rw-r--r-- | lib/parsetools/include/leexinc.hrl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/parsetools/include/leexinc.hrl b/lib/parsetools/include/leexinc.hrl index b4449607cb..2a74c252ff 100644 --- a/lib/parsetools/include/leexinc.hrl +++ b/lib/parsetools/include/leexinc.hrl @@ -272,6 +272,8 @@ skip_cont(Rest, Line, {skip_token,Push}, Error) -> skip_cont(Rest, Line, {error,_S}, Error) -> skip_tokens(yystate(), Rest, Line, Rest, 0, Line, Error, reject, 0). +-compile({nowarn_unused_function, [yyrev/1, yyrev/2, yypre/2, yysuf/2]}). + yyrev(List) -> lists:reverse(List). yyrev(List, Tail) -> lists:reverse(List, Tail). yypre(List, N) -> lists:sublist(List, N). @@ -282,6 +284,8 @@ yysuf(List, N) -> lists:nthtail(N, List). %% Line has been updated with respect to newlines in the prefix of %% Chars consisting of (TokenLength - AcceptLength) characters. +-compile({nowarn_unused_function, adjust_line/4}). + adjust_line(N, N, _Cs, L) -> L; adjust_line(T, A, [$\n|Cs], L) -> adjust_line(T-1, A, Cs, L-1); |