From 680b9e6b54e40e517667c788f23f19f0264dc86e Mon Sep 17 00:00:00 2001 From: compudj Date: Sun, 4 Dec 2005 02:13:26 +0000 Subject: [PATCH] genevent fix : warnings git-svn-id: http://ltt.polymtl.ca/svn@1374 04897980-b3bd-0310-b5e0-8ef037075253 --- genevent-new/genevent.c | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) 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"); -- 2.34.1