From: compudj Date: Sun, 4 Dec 2005 02:13:26 +0000 (+0000) Subject: genevent fix : warnings X-Git-Tag: v0.12.20~2115 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=680b9e6b54e40e517667c788f23f19f0264dc86e;p=lttv.git genevent fix : warnings git-svn-id: http://ltt.polymtl.ca/svn@1374 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/genevent-new/genevent.c b/genevent-new/genevent.c index 7a951bbf..aabc6997 100644 --- a/genevent-new/genevent.c +++ b/genevent-new/genevent.c @@ -1032,24 +1032,8 @@ int print_type_write_fct(type_descriptor_t * td, FILE *fd, unsigned int tabs, fprintf(fd, "{\n"); - - if(td->fields.position > 0) { - int has_type_fixed = 0; - for(unsigned int i=0;ifields.position;i++){ - /* Search for at least one child with fixed size. It means - * we need local variables.*/ - field_t *field = (field_t*)(td->fields.array[i]); - type_descriptor_t *type = field->type; - has_type_fixed = has_type_local(type); - if(has_type_fixed) break; - } - - if(has_type_fixed) { - print_tabs(1, fd); - fprintf(fd, "size_t size;\n"); - } - } - + print_tabs(1, fd); + fprintf(fd, "size_t size;\n"); print_tabs(1, fd); fprintf(fd, "size_t align;\n"); fprintf(fd, "\n");