]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Mark dns_isspace as const rather than simply pure
authorMiod Vallat <miod.vallat@powerdns.com>
Thu, 26 Jun 2025 08:42:17 +0000 (10:42 +0200)
committerGitHub <noreply@github.com>
Thu, 26 Jun 2025 08:42:17 +0000 (10:42 +0200)
Co-authored-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
pdns/dnsname.hh

index 68f36eff9bed5e32d3e8fc8583f24e69488025c8..8a8b850fcf76ce99a5484ed93a9276a56cadf0a8 100644 (file)
@@ -39,7 +39,7 @@ using namespace std::string_view_literals;
 #include <boost/version.hpp>
 #include <boost/container/string.hpp>
 
-inline bool dns_isspace(char chr) __attribute__((pure));
+inline bool dns_isspace(char chr) __attribute__((const));
 inline bool dns_isspace(char chr)
 {
   return chr == ' ' || chr == '\t' || chr == '\r' || chr == '\n';