From: Mauro Carvalho Chehab Date: Thu, 26 Mar 2009 15:07:36 +0000 (-0300) Subject: V4L/DVB (11225): v4lgrab: fix compilation warnings X-Git-Tag: 2.1b_release~13690^2~70 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aeecea26234011c3fbf65ffa7d9c9525b486acab;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git V4L/DVB (11225): v4lgrab: fix compilation warnings Documentation/video4linux/v4lgrab.c: In function ‘main’: Documentation/video4linux/v4lgrab.c:193: warning: ‘src_depth’ is used uninitialized in this function Documentation/video4linux/v4lgrab.c:108: warning: ‘b’ may be used uninitialized in this function Documentation/video4linux/v4lgrab.c:108: warning: ‘g’ may be used uninitialized in this function Documentation/video4linux/v4lgrab.c:108: warning: ‘r’ may be used uninitialized in this function Signed-off-by: Mauro Carvalho Chehab --- diff --git a/Documentation/video4linux/v4lgrab.c b/Documentation/video4linux/v4lgrab.c index d6e70be..05769cf 100644 --- a/Documentation/video4linux/v4lgrab.c +++ b/Documentation/video4linux/v4lgrab.c @@ -105,8 +105,8 @@ int main(int argc, char ** argv) struct video_picture vpic; unsigned char *buffer, *src; - int bpp = 24, r, g, b; - unsigned int i, src_depth; + int bpp = 24, r = 0, g = 0, b = 0; + unsigned int i, src_depth = 16; if (fd < 0) { perror(VIDEO_DEV);