Re: [dev] [BUG REPORT] blind: clang-40 warning: variable 'frames' is uninitialized when used here

2018-01-28 Thread Mattias Andrée
On Sun, 28 Jan 2018 13:21:12 -0800
Yuri  wrote:

> src/blind-from-video.c:234:25: warning: variable 'frames' is 
> uninitialized when used here [-Wuninitialized]
>      SPRINTF_HEAD_ZN(head, frames, width, height, "xyza", 
> );
>    ^~
> src/stream.h:9:12: note: expanded from macro 'SPRINTF_HEAD_ZN'
>      (size_t)(FRAMES), (size_t)(WIDTH), (size_t)(HEIGHT), 
> PIXFMT, 0, LENP)
>   ^~
> src/blind-from-video.c:178:38: note: initialize the variable 'frames' to 
> silence this warning
>      size_t width = 0, height = 0, frames;
>      ^
>   = 0
> 
> 

Hi, thanks for the report!

I've a lot of changes in the works, I will apply this (if I haven't
already fixed it that is), but it will take some times before you
will see it.


Mattias Andrée


pgp5Qhv6VjDKd.pgp
Description: OpenPGP digital signature


[dev] [BUG REPORT] blind: clang-40 warning: variable 'frames' is uninitialized when used here

2018-01-28 Thread Yuri
src/blind-from-video.c:234:25: warning: variable 'frames' is 
uninitialized when used here [-Wuninitialized]
    SPRINTF_HEAD_ZN(head, frames, width, height, "xyza", 
);

  ^~
src/stream.h:9:12: note: expanded from macro 'SPRINTF_HEAD_ZN'
    (size_t)(FRAMES), (size_t)(WIDTH), (size_t)(HEIGHT), 
PIXFMT, 0, LENP)

 ^~
src/blind-from-video.c:178:38: note: initialize the variable 'frames' to 
silence this warning

    size_t width = 0, height = 0, frames;
    ^
 = 0