From ae22e0f8cb70097b3491b8e7ae05c646b752115c Mon Sep 17 00:00:00 2001 From: Otto Date: Mon, 10 May 2021 16:25:56 +0200 Subject: [PATCH] rec 4.4.x codebase is not c++17, so don't use static_assert with 1 arg. --- pdns/filterpo.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/filterpo.cc b/pdns/filterpo.cc index 6a92b07456..c814447467 100644 --- a/pdns/filterpo.cc +++ b/pdns/filterpo.cc @@ -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(&addr.sin6.sin6_addr.s6_addr); std::array elems; -- 2.47.2