[cups.development] [Patch] Fix cups 1.4.1 build with gcc 4.4.1

Michael R Sweet msweet at apple.com
Tue Sep 15 10:11:17 PDT 2009


STR #3332:

     http://www.cups.org/str.php?L3332

On Sep 14, 2009, at 13:09, Frederik Himpe <fhimpe at telenet.be> wrote:

> Compilation of cups 1.4.1 fails on x86_64 Linux (Mandriva Cooker), gcc
> 4.4.1 with this error:
>
> In file included from usb.c:63:
> usb-unix.c:564: error: conflicting types for 'side_cb'
> usb-unix.c:39: note: previous declaration of 'side_cb' was here
> usb-unix.c: In function 'side_cb':
> usb-unix.c:582: warning: 'return' with a value, in function  
> returning void
> usb-unix.c:625: warning: 'return' with a value, in function  
> returning void
>
> Patch to fix this error:
>
> --- cups-1.4.1/backend/usb-unix.c~    2009-08-31 20:45:43.000000000  
> +0200
> +++ cups-1.4.1/backend/usb-unix.c    2009-09-14 21:58:09.000000000  
> +0200
> @@ -560,7 +560,7 @@
>  * 'side_cb()' - Handle side-channel requests...
>  */
>
> -static void
> +static int
> side_cb(int         print_fd,        /* I - Print file */
>         int         device_fd,        /* I - Device file */
>         int         snmp_fd,        /* I - SNMP socket (unused) */
>
>
>
> -- 
> Frederik Himpe
>
> _______________________________________________
> cups-dev mailing list
> cups-dev at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups-dev





More information about the cups mailing list