Skip to content

Commit

Permalink
meson: do not compare objects of different types
Browse files Browse the repository at this point in the history
This fixes the following warning:
```
meson.build:1140: WARNING: Trying to compare values of different types (DependencyHolder, list) using !=.
The result of this is undefined and will become a hard error in a future Meson release.
```

Follow-up for f02582f(#9410).
  • Loading branch information
yuwata authored and poettering committed Jun 28, 2018
1 parent 283c265 commit 48f5da1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,8 @@ substs.set('DEFAULT_DNSSEC_MODE', default_dnssec)

dns_over_tls = get_option('dns-over-tls')
if dns_over_tls != 'false'
have = libgnutls != [] and libgnutls.version().version_compare('>=3.5.3')
have = (conf.get('HAVE_GNUTLS') == 1 and
libgnutls.version().version_compare('>=3.5.3'))
if dns_over_tls == 'true' and not have
error('DNS-over-TLS support was requested, but dependencies are not available')
endif
Expand Down

0 comments on commit 48f5da1

Please sign in to comment.