File 0224-parsetools-Fix-unused-functions-warnings-in-leexinc..patch of Package erlang

From e245c2fcfce63de29e80b3b0379fc92513b3b6a5 Mon Sep 17 00:00:00 2001
From: Hans Bolinder <hasse@erlang.org>
Date: Tue, 24 Oct 2017 10:27:56 +0200
Subject: [PATCH] parsetools: Fix unused functions warnings in leexinc.hrl

---
 lib/parsetools/include/leexinc.hrl | 4 ++++
 1 file changed, 4 insertions(+)

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);
-- 
2.15.1

openSUSE Build Service is sponsored by