diff options
author | Lukas Larsson <[email protected]> | 2011-07-25 10:59:30 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2011-08-02 14:43:29 +0200 |
commit | d4c67f705a418ed02a7128ca74819cb995f27577 (patch) | |
tree | ea00a952fda848974e36831999547effe6c32871 /lib/asn1/src/asn1ct_gen.erl | |
parent | b16af6d09ef2a5843e1fb491114906780f3f970d (diff) | |
download | otp-d4c67f705a418ed02a7128ca74819cb995f27577.tar.gz otp-d4c67f705a418ed02a7128ca74819cb995f27577.tar.bz2 otp-d4c67f705a418ed02a7128ca74819cb995f27577.zip |
Remove some superflous includes which caused inlined modules to have lots of compile warnings
Diffstat (limited to 'lib/asn1/src/asn1ct_gen.erl')
-rw-r--r-- | lib/asn1/src/asn1ct_gen.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/asn1/src/asn1ct_gen.erl b/lib/asn1/src/asn1ct_gen.erl index e18bc37058..0f8833f716 100644 --- a/lib/asn1/src/asn1ct_gen.erl +++ b/lib/asn1/src/asn1ct_gen.erl @@ -1521,8 +1521,9 @@ gen_head(Erules,Mod,Hrl) -> emit({"-module('",Mod,"').",nl}), put(currmod,Mod), %emit({"-compile(export_all).",nl}), - case Hrl of - 0 -> true; + case {Hrl,lists:member(inline,get(encoding_options))} of + {0,_} -> true; + {_,true} -> true; _ -> emit({"-include(\"",Mod,".hrl\").",nl}) end, |