]> git.proxmox.com Git - mirror_qemu.git/commit
meson.build: Use -Wno-undef only for SDL2 versions that need it
authorThomas Huth <thuth@redhat.com>
Mon, 5 Jun 2023 11:45:23 +0000 (13:45 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 6 Jun 2023 07:42:15 +0000 (09:42 +0200)
commit6da5f22b65f7147e1f0bd589cbdb072305a13bb7
tree601fd4a26b9ae8aec41abc9b68262b805ab8b045
parentaece7238c4ebf4d95780df95f1a4743a7fa52ca9
meson.build: Use -Wno-undef only for SDL2 versions that need it

There is no need to disable this useful compiler warning for
all versions of the SDL. Unfortunately, various versions are
buggy (beside SDL 2.0.8, the version 2.26.0 and 2.26.1 are
broken, too, see https://github.com/libsdl-org/SDL/issues/6619 ),
but we can use a simple compiler check to see whether we need
the -Wno-undef or not.

This also enables the printing of the version number with
good versions of the SDL in the summary of the meson output
again.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20230605114523.282987-1-thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
meson.build