06e741
This patch fixes missing field initializer warnings in gcc.
06e741
The fixes are almost entirely in generated code, so it would of
06e741
course be much better to fix the generator scripts to create
06e741
complete definitions and render this patch redundant.
06e741
06e741
--- src/basemath/FpE.c
06e741
+++ src/basemath/FpE.c
80bdf6
@@ -1647,7 +1647,7 @@ _FpXQE_rand(void *E)
06e741
   return random_FpXQE(e->a4, e->a6, e->T, e->p);
06e741
 }
06e741
 
06e741
-static const struct bb_group FpXQE_group={_FpXQE_add,_FpXQE_mul,_FpXQE_rand,hash_GEN,ZXV_equal,ell_is_inf};
06e741
+static const struct bb_group FpXQE_group={_FpXQE_add,_FpXQE_mul,_FpXQE_rand,hash_GEN,ZXV_equal,ell_is_inf,NULL};
06e741
 
06e741
 const struct bb_group *
06e741
 get_FpXQE_group(void ** pt_E, GEN a4, GEN a6, GEN T, GEN p)
06e741
--- src/desc/gen_proto
06e741
+++ src/desc/gen_proto
80bdf6
@@ -65,14 +65,14 @@ foreach my $name (sort keys %funcs)
06e741
       if (defined($cname))
06e741
       {
06e741
         $proto =~ s/"/\\"/g;
06e741
-        print "{\"$gpname\",0,(void*)$cname,$sec,\"$proto\",$help},\n";
06e741
+        print "{\"$gpname\",0,(void*)$cname,$sec,\"$proto\",$help,NULL,0,0,NULL},\n";
06e741
       }
06e741
       else
06e741
       {
06e741
-        print "{\"$gpname\",0,NULL,$sec,NULL,$help},\n";
06e741
+        print "{\"$gpname\",0,NULL,$sec,NULL,$help,NULL,0,0,NULL},\n";
06e741
       }
06e741
 }
06e741
 print <<'EOF';
06e741
-{NULL,0,NULL,0,NULL,NULL} /* sentinel */
06e741
+{NULL,0,NULL,0,NULL,NULL,NULL,0,0,NULL} /* sentinel */
06e741
 };
06e741
 EOF