Commit ed19516aa77b632197f47d0ddcd9632678baab98

Authored by Jay Berkenbilt
1 parent 30027481

Fix unused local variable warnings

libqpdf/QPDF.cc
... ... @@ -657,7 +657,7 @@ QPDF::read_xrefStream(qpdf_offset_t xref_offset)
657 657 xref_obj = readObjectAtOffset(
658 658 false, xref_offset, "xref stream", -1, 0, xobj, xgen);
659 659 }
660   - catch (QPDFExc& e)
  660 + catch (QPDFExc&)
661 661 {
662 662 // ignore -- report error below
663 663 }
... ...
libqpdf/QPDF_encryption.cc
... ... @@ -1112,7 +1112,7 @@ QPDF::decryptString(std::string& str, int objid, int generation)
1112 1112 str = std::string(tmp.getPointer(), vlen);
1113 1113 }
1114 1114 }
1115   - catch (QPDFExc& e)
  1115 + catch (QPDFExc&)
1116 1116 {
1117 1117 throw;
1118 1118 }
... ...
libtests/pcre.cc
... ... @@ -11,7 +11,7 @@ int main(int argc, char* argv[])
11 11 PCRE("^([\\p{L}]+)", PCRE_UTF8);
12 12 std::cout << "1" << std::endl;
13 13 }
14   - catch (std::exception& e)
  14 + catch (std::exception&)
15 15 {
16 16 std::cout << "0" << std::endl;
17 17 }
... ...