]> git.proxmox.com Git - mirror_qemu.git/commitdiff
meson: remove pointless warnings
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Nov 2021 11:23:45 +0000 (12:23 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Nov 2021 14:57:28 +0000 (15:57 +0100)
Meson tests sometimes warn if the required libraries and headers are present but
a test program fails to link.  In the case of DirectSound and OSS, however, there
is no test program so there is no need to warn.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
meson.build

index 0ab9c43bf2437c2a09ea8a02637ef45be2571abd..d09e314e04ac6eaf775034349d049832b771955a 100644 (file)
@@ -924,8 +924,6 @@ if have_system and not get_option('oss').disabled()
   if not oss.found()
     if get_option('oss').enabled()
       error('OSS not found')
-    else
-      warning('OSS not found, disabling')
     endif
   endif
 endif
@@ -938,8 +936,6 @@ if not get_option('dsound').auto() or (targetos == 'windows' and have_system)
   if not dsound.found()
     if get_option('dsound').enabled()
       error('DirectSound not found')
-    else
-      warning('DirectSound not found, disabling')
     endif
   endif
 endif