diff options
author | Björn Gustavsson <[email protected]> | 2015-05-25 14:21:57 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-05-25 14:28:53 +0200 |
commit | 341e4dad9c2577be3af4314f9778ad41df0a5aba (patch) | |
tree | 87704aebb4d5bfee0da3eaba13bdc6594c6200c1 | |
parent | 2d8a73e2099f239e75276680cda9914c852316ee (diff) | |
download | otp-341e4dad9c2577be3af4314f9778ad41df0a5aba.tar.gz otp-341e4dad9c2577be3af4314f9778ad41df0a5aba.tar.bz2 otp-341e4dad9c2577be3af4314f9778ad41df0a5aba.zip |
et: Eliminate warnings for deprecated erlang:now/0
et analyses trace messages, and since trace message with timestamps
still always are based on erlang:now/0, we must keep the calls to
erlang:now/0 but suppress the warnings.
-rw-r--r-- | lib/et/src/et_collector.erl | 2 | ||||
-rw-r--r-- | lib/et/src/et_selector.erl | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/et/src/et_collector.erl b/lib/et/src/et_collector.erl index e05c67be60..1f60dee8ca 100644 --- a/lib/et/src/et_collector.erl +++ b/lib/et/src/et_collector.erl @@ -64,6 +64,8 @@ -export([init/1,terminate/2, code_change/3, handle_call/3, handle_cast/2, handle_info/2]). +-compile([{nowarn_deprecated_function,[{erlang,now,0}]}]). + -include("et_internal.hrl"). -include("../include/et.hrl"). diff --git a/lib/et/src/et_selector.erl b/lib/et/src/et_selector.erl index c8e9c907b2..5497096377 100644 --- a/lib/et/src/et_selector.erl +++ b/lib/et/src/et_selector.erl @@ -28,6 +28,8 @@ parse_event/2 ]). +-compile([{nowarn_deprecated_function,[{erlang,now,0}]}]). + -include("../include/et.hrl"). %%---------------------------------------------------------------------- |