aboutsummaryrefslogtreecommitdiffstats
path: root/lib/megaco/src/text/megaco_text_gen_v1.hrl
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2019-06-11 18:37:01 +0200
committerMicael Karlberg <[email protected]>2019-06-27 17:34:46 +0200
commit5c968e6536033525234df9b1af75a5735b61981d (patch)
treebf60a6d4511e3326a083f603a3b6c33993239fce /lib/megaco/src/text/megaco_text_gen_v1.hrl
parent167020abedfffb1d053e77f3472c04f661953632 (diff)
downloadotp-5c968e6536033525234df9b1af75a5735b61981d.tar.gz
otp-5c968e6536033525234df9b1af75a5735b61981d.tar.bz2
otp-5c968e6536033525234df9b1af75a5735b61981d.zip
[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
Diffstat (limited to 'lib/megaco/src/text/megaco_text_gen_v1.hrl')
-rw-r--r--lib/megaco/src/text/megaco_text_gen_v1.hrl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/megaco/src/text/megaco_text_gen_v1.hrl b/lib/megaco/src/text/megaco_text_gen_v1.hrl
index 38a0f6fd6b..6da9ea94ff 100644
--- a/lib/megaco/src/text/megaco_text_gen_v1.hrl
+++ b/lib/megaco/src/text/megaco_text_gen_v1.hrl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2000-2016. All Rights Reserved.
+%% Copyright Ericsson AB 2000-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.
@@ -2303,6 +2303,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) ->