]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
Fix build failure with GCC 15 and -std=c23 (#618)
authorzdohnal <zdohnal@redhat.com>
Tue, 11 Feb 2025 08:40:59 +0000 (09:40 +0100)
committerGitHub <noreply@github.com>
Tue, 11 Feb 2025 08:40:59 +0000 (09:40 +0100)
The newest standard has more strict data type checks, function pointers
in function prototypes have to declare data types of its arguments.

filter/foomatic-rip/process.h

index f6e15f65c081f55dadf0adefc1c809023a0e8c8d..54a42923a0950ca5b51bbb140c00e73e92318732 100644 (file)
@@ -18,7 +18,7 @@
 #include <sys/wait.h>
 
 
-pid_t start_process(const char *name, int (*proc_func)(), void *user_arg,
+pid_t start_process(const char *name, int (*proc_func)(FILE*, FILE*, void*), void *user_arg,
                    FILE **fdin, FILE **fdout);
 pid_t start_system_process(const char *name, const char *command, FILE **fdin,
                           FILE **fdout);