commit | bbb582a37becb2ab88daf43e3ec028f17f8e8765 | [log] [tgz] |
---|---|---|
author | abat <abat@bigswitch.com> | Fri May 02 14:31:32 2014 -0700 |
committer | abat <abat@bigswitch.com> | Fri May 02 14:31:32 2014 -0700 |
tree | d0f45742215e7e7cec5cb2361c21983784145787 | |
parent | 411505bf4854bb3d2b64593337d834906aa3f56f [diff] | |
parent | 6cab2bbdfc854cc5d70ee469d25b9db9c6d728f7 [diff] |
Merge into master from pull request #260: loci: workaround a clang analyzer warning (https://github.com/floodlight/loxigen/pull/260)
diff --git a/c_gen/templates/loci_validator.c b/c_gen/templates/loci_validator.c index a275029..1f98b21 100644 --- a/c_gen/templates/loci_validator.c +++ b/c_gen/templates/loci_validator.c
@@ -110,8 +110,11 @@ return -1; } +:: if not ofclass.is_fixed_length: len = wire_len; +:: #endif +:: :: elif type(m) == OFFieldLengthMember: :: # Read field length members :: field_length_members[m.field_name] = m