]> git.ipfire.org Git - thirdparty/pdns.git/commit
Fix building with LLVM11 9543/head
authorRvdE <tremere@cainites.net>
Sun, 23 Aug 2020 22:26:21 +0000 (00:26 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 28 Sep 2020 10:41:34 +0000 (12:41 +0200)
commite6c06381a8a60e60d4f8144d4eb61bc80b7b47e7
tree3c8eb37659db5df5804a1176762d2dcc222edbc6
parent1ddff83b41c05cf7b7a0897faee6a360b5ab955f
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.

(cherry picked from commit e7c6996eb650d17372548899408160bb2d712511)
pdns/dnsdist-console.cc