aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/sys_core_fold.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-01-30 07:07:01 +0100
committerBjörn Gustavsson <[email protected]>2015-02-11 09:57:47 +0100
commitb4243128452036945a6168ab994528050b318528 (patch)
treeb693064fb6ba172832a27a8870213f7460b0f1f0 /lib/compiler/src/sys_core_fold.erl
parentb55bd4325f26120d6e71dd3c5fb5aa5e0e166063 (diff)
downloadotp-b4243128452036945a6168ab994528050b318528.tar.gz
otp-b4243128452036945a6168ab994528050b318528.tar.bz2
otp-b4243128452036945a6168ab994528050b318528.zip
v3_core: Suppress compiler-generated calls in guards
Compiling the following function: f(V) when not (bar and V) -> true; %Line 4 f(_) -> false. would produce the following warnings: no_file: Warning: the call to is_boolean/1 has no effect t.erl:4: Warning: the guard for this clause evaluates to 'false' t.erl:4: Warning: use of operator '=:=' has no effect Two of the warnings refer to calls to is_boolean/1 and '=:='/2 which v3_core added when translating the code to Core Erlang. The only relevant warning is: t.erl:4: Warning: the guard for this clause evaluates to 'false' Suppress the other two warning by marking the compiler-generated calls with a 'compiler_generated' annotation.
Diffstat (limited to 'lib/compiler/src/sys_core_fold.erl')
0 files changed, 0 insertions, 0 deletions