projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f83f8c7
)
meson: avoid warning about comparison of bool and string
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Fri, 9 Mar 2018 13:21:08 +0000
(14:21 +0100)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Fri, 9 Mar 2018 13:21:08 +0000
(14:21 +0100)
meson.build:2907: WARNING: Trying to compare values of different types (bool, str) using ==.
The result of this is undefined and will become a hard error in a future Meson release.
meson.build
patch
|
blob
|
history
diff --git
a/meson.build
b/meson.build
index
30b7f1b
..
e152226
100644
(file)
--- a/
meson.build
+++ b/
meson.build
@@
-2903,8
+2903,9
@@
foreach tuple : [
['debug mmap cache'],
]
- cond = tuple.get(1, '')
- if cond == ''
+ if tuple.length() >= 2
+ cond = tuple[1]
+ else
ident1 = 'HAVE_' + tuple[0].underscorify().to_upper()
ident2 = 'ENABLE_' + tuple[0].underscorify().to_upper()
cond = conf.get(ident1, 0) == 1 or conf.get(ident2, 0) == 1