File cups-drivers-1.3.8-gcc_warn.patch of Package cups-drivers
--- cups-drivers/foomatic-db-engine/foomatic-combo-xml.c.orig 2008-09-09 13:59:14.000000000 +0200
+++ cups-drivers/foomatic-db-engine/foomatic-combo-xml.c 2008-09-09 16:12:35.000000000 +0200
@@ -540,7 +540,7 @@ parse(char **data, /* I/O - Data to proc
fprintf
(stderr,
" Driver does not allow PJL options and this is a PJL option -->\n Option does not apply!\n");
- return;
+ return 0;
}
}
} else if (strcmp(currtagname, "ev_shortname") == 0) {
@@ -1292,7 +1292,7 @@ parse(char **data, /* I/O - Data to proc
*data = NULL;
if (debug)
fprintf(stderr, " Option does not apply!\n");
- return;
+ return 0;
}
}
if (debug)
@@ -1352,7 +1352,7 @@ parse(char **data, /* I/O - Data to proc
free((void *)(*data));
*data = NULL;
if (debug) fprintf (stderr, " No enum. values, no constraints => Removing option!\n");
- return;
+ return 0;
}
/* Insert the line determining the default setting */
if ((argdefault[0]) || (userdefault)) {
@@ -1540,7 +1540,7 @@ parse(char **data, /* I/O - Data to proc
*data = NULL;
if (debug)
fprintf(stderr, " Driver entry does not produce PPDs!\n");
- return;
+ return 0;
}
}
/* Remove the whole <prototype> block */