aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/src/asn1ct_gen.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2011-07-25 10:59:30 +0200
committerLukas Larsson <[email protected]>2011-08-02 14:43:29 +0200
commitd4c67f705a418ed02a7128ca74819cb995f27577 (patch)
treeea00a952fda848974e36831999547effe6c32871 /lib/asn1/src/asn1ct_gen.erl
parentb16af6d09ef2a5843e1fb491114906780f3f970d (diff)
downloadotp-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.erl5
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,