From cb091ea8447f92eb1f21218b569651276b0cf5c7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 4 Sep 2019 07:52:06 +0530 Subject: [PATCH] Suppress compiler warning for unused parameter --- src/calibre/utils/podofo/fonts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/utils/podofo/fonts.cpp b/src/calibre/utils/podofo/fonts.cpp index e2dbe8cd63..dabfafe5c2 100644 --- a/src/calibre/utils/podofo/fonts.cpp +++ b/src/calibre/utils/podofo/fonts.cpp @@ -57,7 +57,7 @@ replace_font_references_in_resources(PdfDictionary &resources, const std::unorde uint64_t key = ref_as_integer(k.second->GetReference()), r; try { r = ref_map.at(key); - } catch (const std::out_of_range &err) { continue; } + } catch (const std::out_of_range &err) { (void)err; continue; } PdfReference new_ref(static_cast(r & 0xffffffff), r >> 32); new_font.AddKey(k.first.GetName(), new_ref); changed = true;