Re: [patch review] uvc_driver: fix compile warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Alexey,

On Sunday 19 April 2009 22:03:09 Alexey Klimov wrote:
> Hello, all
> I saw warnings in v4l-dvb daily build.
> May this patch be helpful?

I can't reproduce the problem with gcc 4.3.2.

Hans, what's the policy for fixing gcc-related issues ? Should the code use 
uninitialized_var() to make every gcc version happy, or can ignore the 
warnings when a newer gcc version fixes the problem 

> Signed-off-by: Alexey Klimov <klimov.linux@xxxxxxxxx>
>
> --
> diff -r cda79523a93c linux/drivers/media/video/uvc/uvc_driver.c
> --- a/linux/drivers/media/video/uvc/uvc_driver.c	Thu Apr 16 18:30:38 2009
> +0200 +++ b/linux/drivers/media/video/uvc/uvc_driver.c	Sun Apr 19 23:58:02
> 2009 +0400 @@ -1726,7 +1726,7 @@
>  static int __uvc_resume(struct usb_interface *intf, int reset)
>  {
>  	struct uvc_device *dev = usb_get_intfdata(intf);
> -	int ret;
> +	int ret = 0;
>
>  	uvc_trace(UVC_TRACE_SUSPEND, "Resuming interface %u\n",
>  		intf->cur_altsetting->desc.bInterfaceNumber);

Laurent Pinchart

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux