diff options
author | Björn Gustavsson <[email protected]> | 2014-05-05 13:04:21 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2014-06-05 13:46:27 +0200 |
commit | 20905fcfbbadcf88106792d2935b30728f779a18 (patch) | |
tree | 056f3dfffe98a71b1f149a531993d59dc2232e87 | |
parent | 11c9fe198466c8307085478ead2146e077c68098 (diff) | |
download | otp-20905fcfbbadcf88106792d2935b30728f779a18.tar.gz otp-20905fcfbbadcf88106792d2935b30728f779a18.tar.bz2 otp-20905fcfbbadcf88106792d2935b30728f779a18.zip |
(U)PER: Suppress dialyzer warnings for complete/1
-rw-r--r-- | lib/asn1/src/asn1ct_gen_per.erl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/asn1/src/asn1ct_gen_per.erl b/lib/asn1/src/asn1ct_gen_per.erl index cf6ec49e9f..39cc0536f8 100644 --- a/lib/asn1/src/asn1ct_gen_per.erl +++ b/lib/asn1/src/asn1ct_gen_per.erl @@ -41,7 +41,13 @@ %% Generate ENCODING ****************************** %%****************************************x -dialyzer_suppressions(_) -> +dialyzer_suppressions(Erules) -> + case asn1ct_func:is_used({Erules,complete,1}) of + false -> + ok; + true -> + emit([" _ = complete(Arg),",nl]) + end, emit([" ok.",nl]). |