diff options
author | Björn Gustavsson <[email protected]> | 2016-02-12 15:00:05 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-02-12 15:00:05 +0100 |
commit | 52fec5fe09e24a99d439e31c1989482f393f4832 (patch) | |
tree | 6188a429566a549e81f2f1385d7a821bec8eabfd /lib | |
parent | e84414ce53c7a1131c2356e81b5417badb1389c8 (diff) | |
download | otp-52fec5fe09e24a99d439e31c1989482f393f4832.tar.gz otp-52fec5fe09e24a99d439e31c1989482f393f4832.tar.bz2 otp-52fec5fe09e24a99d439e31c1989482f393f4832.zip |
asn1: Suppress warnings for improper lists in generated code
Diffstat (limited to 'lib')
-rw-r--r-- | lib/asn1/src/asn1ct_gen.erl | 1 | ||||
-rw-r--r-- | lib/asn1/test/asn1_test_lib.erl | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/asn1/src/asn1ct_gen.erl b/lib/asn1/src/asn1ct_gen.erl index 093bcb5a6c..6d5062a118 100644 --- a/lib/asn1/src/asn1ct_gen.erl +++ b/lib/asn1/src/asn1ct_gen.erl @@ -1289,6 +1289,7 @@ gen_head(Erules,Mod,Hrl) -> emit({"-module('",Mod,"').",nl}), put(currmod,Mod), emit({"-compile(nowarn_unused_vars).",nl}), + emit({"-dialyzer(no_improper_lists).",nl}), case Hrl of 0 -> ok; _ -> emit({"-include(\"",Mod,".hrl\").",nl}) diff --git a/lib/asn1/test/asn1_test_lib.erl b/lib/asn1/test/asn1_test_lib.erl index 4fee5a64cc..ae2e5641ec 100644 --- a/lib/asn1/test/asn1_test_lib.erl +++ b/lib/asn1/test/asn1_test_lib.erl @@ -58,7 +58,7 @@ dialyze(Files) -> Beams0 = [code:which(module(F)) || F <- Files], Beams = [code:which(asn1rt_nif)|Beams0], case dialyzer:run([{files,Beams}, - {warnings,[no_improper_lists]}, + {warnings,[]}, {get_warnings,true}]) of [] -> ok; |