aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/compile.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2013-02-07 09:51:11 +0100
committerBjörn Gustavsson <[email protected]>2013-02-07 09:51:11 +0100
commit8e31a2f4999fdb0685a860a136ab9e0dc31b9821 (patch)
tree5f1792af4eb6f28ac309a12da91c182aafd7e9ff /lib/compiler/src/compile.erl
parent80aff33cd27d29692936186ae6c370fbc86e6250 (diff)
parenta12ad74643bdb143b0811a65db9a7bbd8a7697de (diff)
downloadotp-8e31a2f4999fdb0685a860a136ab9e0dc31b9821.tar.gz
otp-8e31a2f4999fdb0685a860a136ab9e0dc31b9821.tar.bz2
otp-8e31a2f4999fdb0685a860a136ab9e0dc31b9821.zip
Merge branch 'bjorn/compiler/dialyzer-warnings'
* bjorn/compiler/dialyzer-warnings: compile: Eliminate warnings for unmatched return values beam_receive: Eliminate dialyzer warning for unmatched return beam_validator: Eliminate dialyzer warnings for unmatched returns
Diffstat (limited to 'lib/compiler/src/compile.erl')
-rw-r--r--lib/compiler/src/compile.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/compiler/src/compile.erl b/lib/compiler/src/compile.erl
index d2baf51edd..497af2b52c 100644
--- a/lib/compiler/src/compile.erl
+++ b/lib/compiler/src/compile.erl
@@ -683,7 +683,7 @@ binary_passes() ->
%% Remove the target file so we don't have an old one if the compilation fail.
remove_file(St) ->
- file:delete(St#compile.ofile),
+ _ = file:delete(St#compile.ofile),
{ok,St}.
-record(asm_module, {module,
@@ -1092,7 +1092,7 @@ makedep_output(#compile{code=Code,options=Opts,ofile=Ofile}=St) ->
io:fwrite(Output1, "~ts", [Code]),
%% Close the file if relevant.
if
- CloseOutput -> file:close(Output1);
+ CloseOutput -> ok = file:close(Output1);
true -> ok
end,
{ok,St}
@@ -1231,7 +1231,7 @@ encrypt(des3_cbc=Mode, {K1,K2,K3, IVec}, Bin0) ->
random_bytes(N) ->
{A,B,C} = now(),
- random:seed(A, B, C),
+ _ = random:seed(A, B, C),
random_bytes_1(N, []).
random_bytes_1(0, Acc) -> Acc;