diff options
author | Björn Gustavsson <[email protected]> | 2016-04-21 10:03:19 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-04-21 10:03:19 +0200 |
commit | d38d5950563429c4a5d6b09550ac1e6f39fb380e (patch) | |
tree | d49356b236620ca40c41fcfbdd2bec22c2db681c /lib | |
parent | 42a1166b47721cd444dbe8c70a04125d842a27c9 (diff) | |
parent | 0259154cb0bb14a77e9ecd6d2762ca6a782e7e30 (diff) | |
download | otp-d38d5950563429c4a5d6b09550ac1e6f39fb380e.tar.gz otp-d38d5950563429c4a5d6b09550ac1e6f39fb380e.tar.bz2 otp-d38d5950563429c4a5d6b09550ac1e6f39fb380e.zip |
Merge branch 'bjorn/compiler/eliminate-dialyzer-warnings'
* bjorn/compiler/eliminate-dialyzer-warnings:
Eliminate Dialyzer warnings for unmatched returns
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compiler/src/compile.erl | 3 | ||||
-rw-r--r-- | lib/compiler/src/rec_env.erl | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/compiler/src/compile.erl b/lib/compiler/src/compile.erl index 65566df025..daf6521236 100644 --- a/lib/compiler/src/compile.erl +++ b/lib/compiler/src/compile.erl @@ -1798,4 +1798,5 @@ pre_load() -> v3_core, v3_kernel, v3_life], - code:ensure_modules_loaded(L). + _ = code:ensure_modules_loaded(L), + ok. diff --git a/lib/compiler/src/rec_env.erl b/lib/compiler/src/rec_env.erl index 2b89dc628c..936c5f6106 100644 --- a/lib/compiler/src/rec_env.erl +++ b/lib/compiler/src/rec_env.erl @@ -603,7 +603,8 @@ generate(_N, Range) -> %% same BEAM code. case rand:export_seed() of undefined -> - rand:seed(exsplus, {1,42,2053}); + _ = rand:seed(exsplus, {1,42,2053}), + ok; _ -> ok end, |