diff options
author | Björn Gustavsson <[email protected]> | 2015-03-17 10:20:52 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-03-17 10:22:19 +0100 |
commit | 9e07ede3f954bdfc6af9f82c1b8261e38b8d857c (patch) | |
tree | 739c6703df0dec0781cfddd8c4e140c0e5b85647 /lib/percept | |
parent | 408c7dc8922a123aad815a24a27d7ff24971a253 (diff) | |
download | otp-9e07ede3f954bdfc6af9f82c1b8261e38b8d857c.tar.gz otp-9e07ede3f954bdfc6af9f82c1b8261e38b8d857c.tar.bz2 otp-9e07ede3f954bdfc6af9f82c1b8261e38b8d857c.zip |
PER, UPER: Eliminate compiler warning for SeqPrim.asn1
The BEAM compiler now warns more aggressively for expressions whose
values are not used. For example, the generated Erlang code for
the following ASN.1 code will now cause a warning:
Seq ::= SEQUENCE {
...,
os OCTET STRING (SIZE (17000..30000))
}
The generated Erlang code looks similar to the following:
Enc9@bin = iolist_to_binary(Enc9@output),
Enc9@len = byte_size(Enc9@bin),
[align|encode_fragmented(Enc9@bin, 8)]
The variable Enc9@len is not used and the BEAM compiler will
complain that the value returned from the byte_size/1 call is
not used.
Improve the optimization of the intermediate code to eliminate
the assignment to the unused variable.
Diffstat (limited to 'lib/percept')
0 files changed, 0 insertions, 0 deletions