diff options
author | Björn Gustavsson <[email protected]> | 2015-01-30 07:07:01 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-02-11 09:57:47 +0100 |
commit | b4243128452036945a6168ab994528050b318528 (patch) | |
tree | b693064fb6ba172832a27a8870213f7460b0f1f0 /lib/crypto/test | |
parent | b55bd4325f26120d6e71dd3c5fb5aa5e0e166063 (diff) | |
download | otp-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/crypto/test')
0 files changed, 0 insertions, 0 deletions