]> git.ipfire.org Git - thirdparty/pdns.git/commit
Fix building with LLVM11 9408/head
authorRvdE <tremere@cainites.net>
Sun, 23 Aug 2020 22:26:21 +0000 (00:26 +0200)
committerGitHub <noreply@github.com>
Sun, 23 Aug 2020 22:26:21 +0000 (00:26 +0200)
commite7c6996eb650d17372548899408160bb2d712511
treef86967dcc6d628f9e49f51166ab141b87424fe22
parente46d0defec9b9150b19723bcace777b8cf5d5997
Fix building with LLVM11

There's a typo on line 529, where it says "true", but the double quotes cause a type cast error on LLVM11.

dnsdist-console.cc:529:32: error: type 'const char [5]' cannot be narrowed to 'bool' in initializer list [-Wc++11-narrowing]
  { "SetNegativeAndSOAAction", "true", "nxd, zone, ttl, mname, rname, serial, refresh, retry, expire, minimum [, options]", "Turn a query into a NXDomain or NoData answer and sets a SOA record in the additional section" },
                               ^~~~~~
dnsdist-console.cc:529:32: note: insert an explicit cast to silence this issue
  { "SetNegativeAndSOAAction", "true", "nxd, zone, ttl, mname, rname, serial, refresh, retry, expire, minimum [, options]", "Turn a query into a NXDomain or NoData answer and sets a SOA record in the additional section" },
                               ^~~~~~
                               static_cast<bool>( )
1 error generated.
pdns/dnsdist-console.cc