This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:
Subject: decode_tm6000: fix compiler warning Author: Hans Verkuil <hverkuil-ci...@xs4all.nl> Date: Mon Nov 8 11:14:07 2021 +0100 decode_tm6000.c: In function ‘main’: decode_tm6000.c:354:25: warning: ‘img’ may be used uninitialized [-Wmaybe-uninitialized] 354 | memcpy(buf,&img[pos],sizeof(buf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ decode_tm6000.c:253:48: note: ‘img’ declared here 253 | unsigned char buf[TM6000_URB_MSG_LEN], img[720*2*480]; | ^~~ Just initialize img to all 0. Signed-off-by: Hans Verkuil <hverkuil-ci...@xs4all.nl> contrib/decode_tm6000/decode_tm6000.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=dbf210ca3b48bf446b0ebca7dceac2fe412d5fbc diff --git a/contrib/decode_tm6000/decode_tm6000.c b/contrib/decode_tm6000/decode_tm6000.c index bd9b2dd44d55..564b22dc377a 100644 --- a/contrib/decode_tm6000/decode_tm6000.c +++ b/contrib/decode_tm6000/decode_tm6000.c @@ -250,7 +250,7 @@ int main (int argc, char*argv[]) { int fd; unsigned int i; - unsigned char buf[TM6000_URB_MSG_LEN], img[720*2*480]; + unsigned char buf[TM6000_URB_MSG_LEN], img[720*2*480] = {}; unsigned int cmd, size, field, block, line, pos=0; unsigned long header=0; int linesize=720*2,skip=0; _______________________________________________ linuxtv-commits mailing list linuxtv-commits@linuxtv.org https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits