[gnome-settings-daemon/wip/hadess/fix-ci: 2/2] build: Fix str/bool comparison




commit 78f7153b6ebcb3dcfa7961cb22c32d3e4ee1252a
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Jul 16 16:02:36 2021 +0200

    build: Fix str/bool comparison
    
    gnome-settings-daemon/meson.build:87: WARNING: Trying to compare values of different types (str, bool) 
using ==.
    The result of this is undefined and will become a hard error in a future Meson release.

 meson.build | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/meson.build b/meson.build
index fdf71713..a4746a49 100644
--- a/meson.build
+++ b/meson.build
@@ -82,9 +82,7 @@ elif gsd_buildtype.contains('release')
   common_flags += ['-DG_DISABLE_CAST_CHECKS']
 endif
 
-# Workaround for meson's bug
-# https://github.com/mesonbuild/meson/pull/1896
-if get_option('b_ndebug') == true
+if get_option('b_ndebug') == 'if-release'
   common_flags += ['-DG_DISABLE_ASSERT']
 endif
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]