aboutsummaryrefslogtreecommitdiffstats
path: root/lib/megaco/src/text/megaco_text_mini_parser.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_mini_parser.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_mini_parser.hrl')
-rw-r--r--lib/megaco/src/text/megaco_text_mini_parser.hrl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/megaco/src/text/megaco_text_mini_parser.hrl b/lib/megaco/src/text/megaco_text_mini_parser.hrl
index 487958af08..72d8168abf 100644
--- a/lib/megaco/src/text/megaco_text_mini_parser.hrl
+++ b/lib/megaco/src/text/megaco_text_mini_parser.hrl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2004-2016. 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.
@@ -1167,6 +1167,7 @@ ensure_pathName({_TokenTag, _Line, Text}) ->
% #'PropertyParm'{name = lists:reverse(Name),
% value = [lists:reverse(Value)]}.
+-dialyzer({nowarn_function, ensure_uint/3}). % Future compat
ensure_uint({_TokenTag, Line, Val}, Min, Max) when is_integer(Val) ->
if
is_integer(Min) andalso (Val >= Min) ->