aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/rdr/TLSException.cxx2
-rw-r--r--common/rdr/TLSException.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/common/rdr/TLSException.cxx b/common/rdr/TLSException.cxx
index ccff6090..ee4f587b 100644
--- a/common/rdr/TLSException.cxx
+++ b/common/rdr/TLSException.cxx
@@ -35,7 +35,7 @@
using namespace rdr;
#ifdef HAVE_GNUTLS
-tls_error::tls_error(const char* s, int err_)
+tls_error::tls_error(const char* s, int err_) noexcept
: std::runtime_error(rfb::format("%s: %s (%d)", s,
gnutls_strerror(err_), err_)),
err(err_)
diff --git a/common/rdr/TLSException.h b/common/rdr/TLSException.h
index cfa73f69..62b090ba 100644
--- a/common/rdr/TLSException.h
+++ b/common/rdr/TLSException.h
@@ -28,7 +28,7 @@ namespace rdr {
class tls_error : public std::runtime_error {
public:
int err;
- tls_error(const char* s, int err_);
+ tls_error(const char* s, int err_) noexcept;
};
}