genevent fix : warnings
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Sun, 4 Dec 2005 02:13:26 +0000 (02:13 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Sun, 4 Dec 2005 02:13:26 +0000 (02:13 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1374 04897980-b3bd-0310-b5e0-8ef037075253

genevent-new/genevent.c

index 7a951bbf1f4fad1b9fcb3a5f0867c11ecc575ec0..aabc69979ea772ec94344a952b26765529666c6e 100644 (file)
@@ -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;i<td->fields.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");
This page took 0.025064 seconds and 4 git commands to generate.