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

Michael Niedermayer michael at niedermayer.cc
Fri Aug 25 03:35:07 EEST 2017


On Thu, Aug 24, 2017 at 09:02:33PM +0100, 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(-)

should be ok

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Avoid a single point of failure, be that a person or equipment.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170825/4be7d35f/attachment.sig>


More information about the ffmpeg-devel mailing list