]> git.ipfire.org Git - thirdparty/pdns.git/commit
auth: Fix `ignoring attributes on template argument` warning in the GeoIP backend
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 27 May 2025 12:49:52 +0000 (14:49 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 27 May 2025 12:49:52 +0000 (14:49 +0200)
commit5506fd3e42a99909a04362a2e5f21b2441ecc364
tree62d83c111ceba34b36ea5800b3113cd5fc2b85b1
parent4587253c905ebb709da8f9f7c6cba7224aac3a9b
auth: Fix `ignoring attributes on template argument` warning in the GeoIP backend

g++ 15.1.1 reports:
```
geoipbackend.cc: In constructor 'GeoIPBackend::GeoIPBackend(const std::string&)':
geoipbackend.cc:88:62: warning: ignoring attributes on template argument 'int (*)(DIR*)' [-Wignored-attributes]
   88 |     auto dirHandle = std::unique_ptr<DIR, decltype(&closedir)>(opendir(getArg("dnssec-keydir").c_str()), closedir);
```
modules/geoipbackend/geoipbackend.cc