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