[FFmpeg-devel] lavf/os_support: Only compile inet_aton() if getaddrinfo() is needed

Reino Wijnsma rwijnsma at xs4all.nl
Sun Apr 22 01:52:40 EEST 2018


On 16-4-2018 1:33, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:
> Attached patch is supposed to silence a user-reported warning when
> inet_aton() is missing but getaddrinfo() is supported.
> Untested.
>
> Please review, Carl Eugen
$ make libavformat/os_support.o
CC      libavformat/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)
                       ^

The warning this patch is for is gone now. Thanks.

-- Reino



More information about the ffmpeg-devel mailing list