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

Carl Eugen Hoyos ceffmpeg at gmail.com
Mon Apr 23 14:40:09 EEST 2018


2018-04-22 0:52 GMT+02:00, Reino Wijnsma <rwijnsma at xs4all.nl>:
> 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.

Pushed this patch.

Carl Eugen


More information about the ffmpeg-devel mailing list