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

From: Mattias Andrée <maandree_AT_kth.se>
Date: Sun, 28 Jan 2018 22:26:13 +0100

On Sun, 28 Jan 2018 13:21:12 -0800
Yuri <yuri_AT_rawbw.com> 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",
> &headlen);
>                                       ^~~~~~
> 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

Received on Sun Jan 28 2018 - 22:26:13 CET

This archive was generated by hypermail 2.3.0 : Sun Jan 28 2018 - 22:36:31 CET