summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Massey <bart@cs.pdx.edu>2008-09-03 13:52:58 -0700
committerBart Massey <bart@cs.pdx.edu>2008-09-03 13:52:58 -0700
commitd6d44e1bf09cca8aefbf4ce9875d7f794bf19fb1 (patch)
tree8fb8b604105fabffd5e83a9fe89fbbf45e6d3be1
parent7e0674e76186ee4491a089350511fc0d22fb3af3 (diff)
fixed overly aggressive warning about fixed field following variable
-rwxr-xr-xsrc/c_client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c_client.py b/src/c_client.py
index db974e0..d634c27 100755
--- a/src/c_client.py
+++ b/src/c_client.py
@@ -640,7 +640,7 @@ def _c_complex(self):
if not field.type.fixed_size():
varfield = field.c_field_name
continue
- if varfield != None and not field.type.is_pad:
+ if varfield != None and not field.type.is_pad and field.wire:
errmsg = '%s: warning: variable field %s followed by fixed field %s\n' % (self.c_type, varfield, field.c_field_name)
sys.stderr.write(errmsg)
# sys.exit(1)