]> git.ipfire.org Git - thirdparty/pdns.git/commit
Avoid a cases of `an exception may be thrown in function '' which should not throw...
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 30 Jan 2024 10:12:34 +0000 (11:12 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 30 Jan 2024 15:58:09 +0000 (16:58 +0100)
commitc0f8e484a37a8011e337ef9f4d56ee4ea02d7a5a
tree8f202bb61d10122a4ffb7b802b536ff6cb5ee059
parentc5e868605f6fa4f87836252982bcf82acf1fed91
Avoid a cases of `an exception may be thrown in function '' which should not throw exceptions (bugprone-exception-escape)`
The use of a DNSName capture by value is the culprit. Avoid those by using
[&]', telling the compiler to figure out the captures by itself but use refs.
This *could* lead to issues if we modify the value in the lambda, so this conversion should be checked!
13 files changed:
pdns/iputils.hh
pdns/recursordist/lwres.cc
pdns/recursordist/lwres.hh
pdns/recursordist/test-syncres_cc1.cc
pdns/recursordist/test-syncres_cc10.cc
pdns/recursordist/test-syncres_cc2.cc
pdns/recursordist/test-syncres_cc3.cc
pdns/recursordist/test-syncres_cc4.cc
pdns/recursordist/test-syncres_cc5.cc
pdns/recursordist/test-syncres_cc6.cc
pdns/recursordist/test-syncres_cc7.cc
pdns/recursordist/test-syncres_cc8.cc
pdns/recursordist/test-syncres_cc9.cc