]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec 4.4.x codebase is not c++17, so don't use static_assert with 1 arg. 10386/head
authorOtto <otto.moerbeek@open-xchange.com>
Mon, 10 May 2021 14:25:56 +0000 (16:25 +0200)
committerOtto <otto.moerbeek@open-xchange.com>
Mon, 10 May 2021 14:25:56 +0000 (16:25 +0200)
pdns/filterpo.cc

index 6a92b07456b283b49372f2ddfe7121022b4cb510..c8144474675a3bb57b452a8030fb03e8f0d106af 100644 (file)
@@ -697,7 +697,7 @@ DNSName DNSFilterEngine::Zone::maskToRPZ(const Netmask& nm)
   }
   else {
     DNSName temp;
-    static_assert(sizeof(addr.sin6.sin6_addr.s6_addr) == sizeof(uint16_t) * 8);
+    static_assert(sizeof(addr.sin6.sin6_addr.s6_addr) == sizeof(uint16_t) * 8, "wrong sizeof(s6_addr)");
     auto src = reinterpret_cast<const uint16_t*>(&addr.sin6.sin6_addr.s6_addr);
     std::array<uint16_t,8> elems;