projects
/
cdsspec-compiler.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
model: don't print 'uninitialized' ModelActions in trace output
[cdsspec-compiler.git]
/
model.cc
diff --git
a/model.cc
b/model.cc
index d15a094f7d8049e1a1e81ed8ac78527b6d1ca66a..cd703edf329ef3245b8bcded411c540b3ac3ab22 100644
(file)
--- a/
model.cc
+++ b/
model.cc
@@
-2814,7
+2814,9
@@
static void print_list(action_list_t *list)
unsigned int hash = 0;
for (it = list->begin(); it != list->end(); it++) {
- (*it)->print();
+ const ModelAction *act = *it;
+ if (act->get_seq_number() > 0)
+ act->print();
hash = hash^(hash<<3)^((*it)->hash());
}
model_print("HASH %u\n", hash);