aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2013-02-06 15:00:27 +0100
committerBjörn Gustavsson <[email protected]>2013-02-06 15:13:03 +0100
commita12ad74643bdb143b0811a65db9a7bbd8a7697de (patch)
treef2852f5a865625c555acbc4fe92951a816973bb2 /lib/compiler
parente295940555c6d56c6155fdd0a235cf1c7562c9e3 (diff)
downloadotp-a12ad74643bdb143b0811a65db9a7bbd8a7697de.tar.gz
otp-a12ad74643bdb143b0811a65db9a7bbd8a7697de.tar.bz2
otp-a12ad74643bdb143b0811a65db9a7bbd8a7697de.zip
compile: Eliminate warnings for unmatched return values
Diffstat (limited to 'lib/compiler')
-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;