From a2f62935b35aebe68a5a2f7e729ae4bb8734cfc7 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 12 Aug 2018 21:57:52 -0400 Subject: Catch exceptions as const references (fixes #236) This fix allows qpdf to compile/test cleanly with gcc 8. --- libqpdf/MD5.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libqpdf') diff --git a/libqpdf/MD5.cc b/libqpdf/MD5.cc index 0504e2d4..275567da 100644 --- a/libqpdf/MD5.cc +++ b/libqpdf/MD5.cc @@ -421,7 +421,7 @@ MD5::checkFileChecksum(char const* const checksum, std::string actual_checksum = getFileChecksum(filename, up_to_size); result = (checksum == actual_checksum); } - catch (std::runtime_error) + catch (std::runtime_error const&) { // Ignore -- return false } -- cgit v1.2.3-54-g00ecf