diff options
author | Björn Gustavsson <[email protected]> | 2015-05-22 10:14:13 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-05-22 10:14:13 +0200 |
commit | 103d58bf2b941ba850d3280b19fd5475f59f1f57 (patch) | |
tree | 5a65bb15ab7f27602119751abff2703b118b7ea2 /lib/kernel/src/code.erl | |
parent | 600bb902552f7c6ceec64e7731a5b4f2d473c752 (diff) | |
download | otp-103d58bf2b941ba850d3280b19fd5475f59f1f57.tar.gz otp-103d58bf2b941ba850d3280b19fd5475f59f1f57.tar.bz2 otp-103d58bf2b941ba850d3280b19fd5475f59f1f57.zip |
code: Eliminate dialyzer warnings for unmatched returns
We want to have the core applications of Erlang/OTP free from any
dialyzer warnings. Eliminate the warnings for unmatched returns
that were introduced in 7309ff4c3832.
Diffstat (limited to 'lib/kernel/src/code.erl')
-rw-r--r-- | lib/kernel/src/code.erl | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/kernel/src/code.erl b/lib/kernel/src/code.erl index 5cc38325b1..65045666ec 100644 --- a/lib/kernel/src/code.erl +++ b/lib/kernel/src/code.erl @@ -560,12 +560,12 @@ load_native_code_for_all_loaded() -> try hipe_unified_loader:chunk_name(Architecture) of ChunkTag -> Loaded = all_loaded(), - spawn(fun() -> load_all_native(Loaded, ChunkTag) end) + _ = spawn(fun() -> load_all_native(Loaded, ChunkTag) end), + ok catch _:_ -> ok - end, - ok. + end. load_all_native(Loaded, ChunkTag) -> catch load_all_native_1(Loaded, ChunkTag). @@ -582,7 +582,8 @@ load_all_native_1([{Mod,BeamFilename}|T], ChunkTag) -> undefined -> ok; NativeCode when is_binary(NativeCode) -> - load_native_partial(Mod, NativeCode) + _ = load_native_partial(Mod, NativeCode), + ok end; true -> ok end, |