[FFmpeg-user] Reporting GCC 7.3.0 compiler-warnings on FFmpeg git (955fa23)

Carl Eugen Hoyos ceffmpeg at gmail.com
Thu Apr 19 13:13:30 EEST 2018

2018-04-15 15:16 GMT+02:00, Reino Wijnsma <rwijnsma at xs4all.nl>:

> I've just compiled a fresh build from git (955fa23) (on Windows using
> Cygwin, MinGW and GCC).

> It compiled without errors, but I did get quite some warnings!

I think you get a small number but anyway.
The main reason this wasn't tested lately was that last gcc
showed a larger number of invalid warnings.


> libavfilter/vf_frei0r.c:193:30: warning: unused variable 'frei0r_pathlist'

Compiler bug?

> ./compat/avisynth/avisynth_c.h

Not maintained within FFmpeg.

> libavformat/hlsenc.c: In function 'get_default_pattern_localtime_fmt':
> libavformat/hlsenc.c:1676:63: warning: unknown conversion type character 's' in format
>         return (HAVE_LIBC_MSVCRT || !strftime(b, sizeof(b), "%s", p)

What does "grep HAVE_LIBC_MSVCRT config.h" show for you?

> libavformat/os_support.c:248:23: warning: comparison of unsigned expression < 0 is always false
>          if (fds[i].fd < 0)

fd is signed here, I doubt this can be silenced.

> libavutil/hwcontext_d3d11va.c: In function 'd3d11va_transfer_data':
> libavutil/hwcontext_d3d11va.c:413:49: warning: passing argument 3 of 'av_image_copy' from incompatible pointer type

Does changing the third argument of av_image_copy() in libavutil/imgutils.h
into "const uint8_t * const src_data[4]" silence anything?
(Only hwcontext_d3d11va.o testing required, breaks imgutils.o compilation)

> libavutil/hwcontext_d3d11va.c:554:46: note: expected 'DXGI_ADAPTER_DESC * {aka struct DXGI_ADAPTER_DESC *}' but argument is of type 'DXGI_ADAPTER_DESC2 * {aka struct DXGI_ADAPTER_DESC2 *}'

I wonder if this is a bug...

Silenced a few others, Carl Eugen

More information about the ffmpeg-user mailing list