diff options
author | Micael Karlberg <[email protected]> | 2019-06-11 18:37:01 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2019-06-27 17:34:46 +0200 |
commit | 5c968e6536033525234df9b1af75a5735b61981d (patch) | |
tree | bf60a6d4511e3326a083f603a3b6c33993239fce /lib/megaco/src/text/megaco_text_gen_v3.hrl | |
parent | 167020abedfffb1d053e77f3472c04f661953632 (diff) | |
download | otp-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_v3.hrl')
-rw-r--r-- | lib/megaco/src/text/megaco_text_gen_v3.hrl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/megaco/src/text/megaco_text_gen_v3.hrl b/lib/megaco/src/text/megaco_text_gen_v3.hrl index dc1f2b9665..e440ec6651 100644 --- a/lib/megaco/src/text/megaco_text_gen_v3.hrl +++ b/lib/megaco/src/text/megaco_text_gen_v3.hrl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2005-2016. All Rights Reserved. +%% Copyright Ericsson AB 2005-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. @@ -3353,6 +3353,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) -> |