aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-06-29 14:19:16 +0200
committerBjörn Gustavsson <[email protected]>2016-09-21 14:07:53 +0200
commit6a83842086d1410fcf559fc34a377d3a1e75bbe0 (patch)
tree5b894700cbec667e486b859312ec1dc8998bbd54 /lib/compiler/src
parent9d41dad0b3e2ec310375634ec48e677467296b1b (diff)
downloadotp-6a83842086d1410fcf559fc34a377d3a1e75bbe0.tar.gz
otp-6a83842086d1410fcf559fc34a377d3a1e75bbe0.tar.bz2
otp-6a83842086d1410fcf559fc34a377d3a1e75bbe0.zip
erl_bifs: Remove error_logger:warning_map/0 as a safe BIF
There is no need to list every obscure safe BIF in erl_bifs:is_safe/3. The purpose of erl_bifs:is_safe/3 is merely to warn when the return value of one of the safe BIFs is ignored.
Diffstat (limited to 'lib/compiler/src')
-rw-r--r--lib/compiler/src/erl_bifs.erl1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/compiler/src/erl_bifs.erl b/lib/compiler/src/erl_bifs.erl
index 7693daaa56..831730ba48 100644
--- a/lib/compiler/src/erl_bifs.erl
+++ b/lib/compiler/src/erl_bifs.erl
@@ -207,7 +207,6 @@ is_safe(erlang, registered, 0) -> true;
is_safe(erlang, self, 0) -> true;
is_safe(erlang, term_to_binary, 1) -> true;
is_safe(erlang, time, 0) -> true;
-is_safe(error_logger, warning_map, 0) -> true;
is_safe(_, _, _) -> false.