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_parser_prev3a.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_parser_prev3a.hrl')
-rw-r--r-- | lib/megaco/src/text/megaco_text_parser_prev3a.hrl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/megaco/src/text/megaco_text_parser_prev3a.hrl b/lib/megaco/src/text/megaco_text_parser_prev3a.hrl index edda850c3a..d7e847993a 100644 --- a/lib/megaco/src/text/megaco_text_parser_prev3a.hrl +++ b/lib/megaco/src/text/megaco_text_parser_prev3a.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. @@ -1589,6 +1589,7 @@ ensure_uint(Token, Min, Max) -> -ifdef(megaco_parser_inline). -compile({inline,[{ensure_uint,4}]}). -endif. +-dialyzer({nowarn_function, ensure_uint/4}). % Future compat ensure_uint(Val, Min, Max, Line) -> if is_integer(Min) andalso (Val >= Min) -> |