diff options
author | Björn-Egil Dahlberg <[email protected]> | 2016-05-10 19:30:34 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2016-05-10 19:52:13 +0200 |
commit | 99c4b3cce1049b325fc11cc66a97f42a4dc0eae3 (patch) | |
tree | 744d4b4e71eb2720e2ad637a4dd7e829afb6fbf3 /lib | |
parent | b4338bc38486ba23c123add6ab0f3460cae9bed3 (diff) | |
download | otp-99c4b3cce1049b325fc11cc66a97f42a4dc0eae3.tar.gz otp-99c4b3cce1049b325fc11cc66a97f42a4dc0eae3.tar.bz2 otp-99c4b3cce1049b325fc11cc66a97f42a4dc0eae3.zip |
fprof: Fix unmatched return warnings
The return value of trace_clock is never used, return 'ok' instead.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tools/src/fprof.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tools/src/fprof.erl b/lib/tools/src/fprof.erl index 3c68ff690d..8db23dd151 100644 --- a/lib/tools/src/fprof.erl +++ b/lib/tools/src/fprof.erl @@ -2200,7 +2200,7 @@ trace_clock_1(Table, Pid, T, TS, Caller, Func, Clock) -> clock_add(Table, Id, Clock, T) -> ?dbg(1, "clock_add(Table, ~w, ~w, ~w)~n", [Id, Clock, T]), - try ets:update_counter(Table, Id, {Clock, T}) + try ets:update_counter(Table, Id, {Clock, T}), ok catch error:badarg -> ets:insert(Table, #clocks{id = Id}), @@ -2209,7 +2209,7 @@ clock_add(Table, Id, Clock, T) -> true -> ?dbg(0, "Negative counter value ~p ~p ~p ~p~n", [X, Id, Clock, T]) end, - X + ok end. clocks_add(Table, #clocks{id = Id} = Clocks) -> |