]> git.ipfire.org Git - thirdparty/pdns.git/commit
Fix a warning about catching a polymorphic exception type by value 10647/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 16 Aug 2021 08:01:04 +0000 (10:01 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 16 Aug 2021 08:01:04 +0000 (10:01 +0200)
commit6f3d0c05b7caa8049d75b85aeaf68f2fb6e7943e
treecd9ec2d1c80898d09cf3bd389f8e1c11eea56b5e
parentbc63770e08717cf29e0609c2ed086d97da142597
Fix a warning about catching a polymorphic exception type by value

```
decafsigners.cc: In member function ‘virtual bool DecafED25519DNSCryptoKeyEngine::verify(const string&, const string&) const’:
decafsigners.cc:140:11: warning: catching polymorphic type ‘class decaf::CryptoException’ by value [-Wcatch-value=]
  140 |   } catch(CryptoException) {
      |           ^~~~~~~~~~~~~~~
decafsigners.cc: In member function ‘virtual bool DecafED448DNSCryptoKeyEngine::verify(const string&, const string&) const’:
decafsigners.cc:276:11: warning: catching polymorphic type ‘class decaf::CryptoException’ by value [-Wcatch-value=]
  276 |   } catch(CryptoException) {
      |           ^~~~~~~~~~~~~~~
```
pdns/decafsigners.cc