Skip to content
Snippets Groups Projects
Commit 5e3f6dc7 authored by Derek Buitenhuis's avatar Derek Buitenhuis Committed by Luca Barbato
Browse files

swscale: Do not expand a macro with 'defined' in it


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: default avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: default avatarLuca Barbato <lu_zero@gentoo.org>
parent 29ba1e60
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment