Re: [FFmpeg-devel] GCC 8.2.0 compiler-warnings on ffmpeg-N-92765-g2744d6b

2018-12-22 Thread Carl Eugen Hoyos
2018-12-23 0:58 GMT+01:00, Reino Wijnsma :

> I can't code in C, so to still contribute to this project I'd like to report
> the warnings I got while compiling ffmpeg-N-92765-g2744d6b

All developers see these warnings, no reason to report them.

Thank you, Carl Eugen
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


[FFmpeg-devel] GCC 8.2.0 compiler-warnings on ffmpeg-N-92765-g2744d6b

2018-12-22 Thread Reino Wijnsma
Hello ffmpeg-devel,

I can't code in C, so to still contribute to this project I'd like to report 
the warnings I got while compiling ffmpeg-N-92765-g2744d6b on Windows using 
Cygwin, MinGW 6.0.0 and GCC 8.2.0.

configure options:
> Configuring ffmpeg_git as ./configure --arch=x86 --target-os=mingw32 
> --cross-prefix=/cygdrive/m/ffmpeg-windows-build-helpers-master/ffmpeg_local_builds/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32-
>  --pkg-config=pkg-config --pkg-config-flags=--static --extra-version=Reino 
> --enable-gray --enable-version3 --disable-debug --disable-doc 
> --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages 
> --disable-w32threads --enable-avisynth --enable-frei0r --enable-filter=frei0r 
> --enable-gmp --enable-gpl --enable-libaom --enable-libass --enable-libbluray 
> --enable-libbs2b --enable-libcaca --extra-cflags=-DCACA_STATIC 
> --enable-libfdk-aac --enable-libflite --enable-libfontconfig 
> --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm 
> --enable-libilbc --enable-libmp3lame --enable-libmysofa 
> --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 
> --enable-libopenmpt --enable-libopus --enable-librubberband --enable-libsnappy
> --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame 
> --extra-cflags=-DLIBTWOLAME_STATIC --enable-libvidstab 
> --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp 
> --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxml2 
> --enable-libxvid --enable-libzimg --enable-libzvbi --enable-mbedtls 
> --extra-cflags=-march=pentium3 --extra-cflags=-mtune=athlon-xp 
> --extra-cflags=-O2 --extra-cflags=-mfpmath=sse --extra-cflags=-msse 
> --enable-static --disable-shared 
> --prefix=/cygdrive/m/ffmpeg-windows-build-helpers-master/ffmpeg_local_builds/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32.

Warnings (other than [-Wdeprecated-declarations]):
> CClibavformat/aadec.o
> libavformat/aadec.c: In function 'aa_read_header':
> libavformat/aadec.c:115:13: warning: 'strncpy' output may be truncated 
> copying 63 bytes from a string of length 127 [-Wstringop-truncation]
>  strncpy(codec_name, val, sizeof(codec_name) - 1);
>  ^~~~
> CClibavformat/dashdec.o
> In function 'parse_manifest_representation',
> inlined from 'parse_manifest_adaptationset' at 
> libavformat/dashdec.c:1144:19,
> inlined from 'parse_manifest' at libavformat/dashdec.c:1331:17:
> libavformat/dashdec.c:1059:13: warning: 'strncpy' specified bound 20 equals 
> destination size [-Wstringop-truncation]
>  strncpy(rep->id, rep_id_val ? rep_id_val : "", sizeof(rep->id));
>  ^~~
> CClibavformat/hls.o
> In function 'new_rendition',
> inlined from 'parse_playlist' at libavformat/hls.c:787:13:
> libavformat/hls.c:515:13: warning: 'strncpy' output may be truncated copying 
> between 2 and 62 bytes from a string of length 63 [-Wstringop-truncation]
>  strncpy(rend->language + langlen + 1, info->assoc_language,
>  ^~~
>  sizeof(rend->language) - langlen - 2);
>  ~
> CClibavformat/hlsenc.o
> libavformat/hlsenc.c: In function 'get_default_pattern_localtime_fmt':
> libavformat/hlsenc.c:1678:63: warning: unknown conversion type character 's' 
> in format [-Wformat=]
>  return (HAVE_LIBC_MSVCRT || !strftime(b, sizeof(b), "%s", p) || 
> !strcmp(b, "%s")) ? "-%Y%m%d%H%M%S.m4s" : "-%s.m4s";
>^
> libavformat/hlsenc.c:1680:59: warning: unknown conversion type character 's' 
> in format [-Wformat=]
>  return (HAVE_LIBC_MSVCRT || !strftime(b, sizeof(b), "%s", p) || 
> !strcmp(b, "%s")) ? "-%Y%m%d%H%M%S.ts" : "-%s.ts";
>^
> CClibavformat/os_support.o
> libavformat/os_support.c: In function 'ff_poll':
> libavformat/os_support.c:248:23: warning: comparison of unsigned expression < 
> 0 is always false [-Wtype-limits]
>  if (fds[i].fd < 0)
>^
> CClibavformat/protocols.o
> libavformat/protocols.c: In function 'avio_enum_protocols':
> libavformat/protocols.c:98:7: warning: assignment discards 'const' qualifier 
> from pointer target type [-Wdiscarded-qualifiers]
>  p = p ? p + 1 : url_protocols;
>^
> X86ASMlibavcodec/x86/proresdsp.o
> STRIPlibavcodec/x86/proresdsp.o
> /cygdrive/m/ffmpeg-windows-build-helpers-master/ffmpeg_local_builds/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32-strip:
>  error: the input file 'libavcodec/x86/proresdsp.o' has no sections
> make: [ffbuild/common.mak:83: libavcodec/x86/proresdsp.o] Error 1 (ignored)
> X86ASM