diff options
author | Björn Gustavsson <[email protected]> | 2016-04-20 15:21:47 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-04-20 15:21:47 +0200 |
commit | 0259154cb0bb14a77e9ecd6d2762ca6a782e7e30 (patch) | |
tree | 147d31c813027823e36000efa3d8ebbf124b3a7d /lib | |
parent | aee7c8eec5219cd1b29db34748d2b2a60701a0c3 (diff) | |
download | otp-0259154cb0bb14a77e9ecd6d2762ca6a782e7e30.tar.gz otp-0259154cb0bb14a77e9ecd6d2762ca6a782e7e30.tar.bz2 otp-0259154cb0bb14a77e9ecd6d2762ca6a782e7e30.zip |
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, |