This patch clears up warnings in embed.c and test_main.c coming
 from function declarations of the form:

 void
 foobar();

 which should properly be

 void
 foobar(void);


 Simon



--- test_main.c.old     Tue Jan 29 20:00:01 2002
+++ test_main.c Wed Jan 30 12:05:36 2002
@@ -18,10 +18,10 @@
 parseflags(struct Parrot_Interp *interpreter, int *argc, char **argv[]);
 
 void
-usage();
+usage(void);
 
 void
-version();
+version(void);
 
 int
 main(int argc, char *argv[]) {


--- embed.c.old Wed Jan 30 12:10:03 2002
+++ embed.c     Wed Jan 30 12:13:53 2002
@@ -19,7 +19,7 @@
 static BOOLVAL world_inited=0;
 
 struct Parrot_Interp *
-Parrot_new() {
+Parrot_new(void) {
     if(!world_inited) {
         world_inited=1;
         init_world();


Reply via email to