diff options
author | Stavros Aronis <[email protected]> | 2011-11-24 23:30:01 +0100 |
---|---|---|
committer | Henrik Nord <[email protected]> | 2011-11-30 14:18:32 +0100 |
commit | ac61d229a27b0b07f08e25c4d18d214df89919e0 (patch) | |
tree | 10b5bcfe9d9c42a163da999237b19c043a467b7c /lib/dialyzer/src | |
parent | 18427c8e60494d34ea1d7b85fe4dd76b65736cc7 (diff) | |
download | otp-ac61d229a27b0b07f08e25c4d18d214df89919e0.tar.gz otp-ac61d229a27b0b07f08e25c4d18d214df89919e0.tar.bz2 otp-ac61d229a27b0b07f08e25c4d18d214df89919e0.zip |
Fix Dialyzer's warning for its own code
Diffstat (limited to 'lib/dialyzer/src')
-rw-r--r-- | lib/dialyzer/src/dialyzer_cl.erl | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/dialyzer/src/dialyzer_cl.erl b/lib/dialyzer/src/dialyzer_cl.erl index e638e2fff2..41970f0efe 100644 --- a/lib/dialyzer/src/dialyzer_cl.erl +++ b/lib/dialyzer/src/dialyzer_cl.erl @@ -525,10 +525,7 @@ native_compile(Mods) -> end. hc(Mod) -> - case code:ensure_loaded(Mod) of - {module, Mod} -> ok; - {error, sticky_directory} -> ok - end, + {module, Mod} = code:ensure_loaded(Mod), case code:is_module_native(Mod) of true -> ok; false -> |