From 5c968e6536033525234df9b1af75a5735b61981d Mon Sep 17 00:00:00 2001 From: Micael Karlberg Date: Tue, 11 Jun 2019 18:37:01 +0200 Subject: [megaco] Various chages and corrections dealing with dialyzer Mostly added nowarn_function-attributes to silence dialyzer (for functions that are "future" proofed). But actually also found some errors (although the issues have not been found for almost 15 years, so...). OTP-15882 --- lib/megaco/src/text/megaco_text_gen_prev3a.hrl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/megaco/src/text/megaco_text_gen_prev3a.hrl') diff --git a/lib/megaco/src/text/megaco_text_gen_prev3a.hrl b/lib/megaco/src/text/megaco_text_gen_prev3a.hrl index db7507fd27..4f3c83c6c5 100644 --- a/lib/megaco/src/text/megaco_text_gen_prev3a.hrl +++ b/lib/megaco/src/text/megaco_text_gen_prev3a.hrl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2004-2017. All Rights Reserved. +%% Copyright Ericsson AB 2004-2019. All Rights Reserved. %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. @@ -2841,6 +2841,7 @@ enc_integer(Val, _State, Min, Max) -> enc_list(List, State) -> enc_list(List, State, fun(_S) -> ?COMMA_INDENT(_S) end, false). +-dialyzer({nowarn_function, enc_list/4}). % Future compat enc_list([], _State, _SepEncoder, _NeedsSep) -> []; enc_list([{Elems, ElemEncoder} | Tail], State, SepEncoder, NeedsSep) -> -- cgit v1.2.3