aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/src/asn1ct_gen.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2011-08-03 15:56:45 +0200
committerLukas Larsson <[email protected]>2011-08-03 15:56:45 +0200
commite995a244d830b688c2cb49ec0fda3653e41bb1c8 (patch)
treeea00a952fda848974e36831999547effe6c32871 /lib/asn1/src/asn1ct_gen.erl
parentb16af6d09ef2a5843e1fb491114906780f3f970d (diff)
parentd4c67f705a418ed02a7128ca74819cb995f27577 (diff)
downloadotp-e995a244d830b688c2cb49ec0fda3653e41bb1c8.tar.gz
otp-e995a244d830b688c2cb49ec0fda3653e41bb1c8.tar.bz2
otp-e995a244d830b688c2cb49ec0fda3653e41bb1c8.zip
Merge branch 'lukas/asn1/remove_unused_record_warnings/OTP-9448' into major
* lukas/asn1/remove_unused_record_warnings/OTP-9448: 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,