[FFmpeg-devel] [PATCH] utils: Do not expand a macro with 'defined' in it

Derek Buitenhuis derek.buitenhuis at gmail.com
Thu Aug 24 23:06:04 EEST 2017


On 8/24/2017 9:02 PM, Derek Buitenhuis wrote:
> Fixes:
> 
>     libswscale/utils.c:1632:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
>     #if USE_MMAP
>         ^
>     libswscale/utils.c:1577:49: note: expanded from macro 'USE_MMAP'
>     #define USE_MMAP (HAVE_MMAP && HAVE_MPROTECT && defined MAP_ANONYMOUS)
>                                                     ^
> Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
> ---
>  libswscale/utils.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)

s#utils#swscale/utils#

- Derek



More information about the ffmpeg-devel mailing list