From 0034448d2ed3c53ffc16939d369e7a30c9b8f0cc Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Wed, 4 Jun 2014 09:37:27 -0400 Subject: [PATCH] fixed some unused variable warnings --- openbr/core/eval.cpp | 5 ----- openbr/plugins/misc.cpp | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/openbr/core/eval.cpp b/openbr/core/eval.cpp index ca276d5..e71fd9c 100644 --- a/openbr/core/eval.cpp +++ b/openbr/core/eval.cpp @@ -303,7 +303,6 @@ float InplaceEval(const QString & simmat, const QString & target, const QString // Check format QByteArray format = file.readLine(); - bool isDistance = (format[0] == 'D'); if (format[1] != '2') qFatal("Invalid matrix header."); // Read sigset names, we dont' care if they are valid, just want to advance the file pointer. @@ -319,15 +318,11 @@ float InplaceEval(const QString & simmat, const QString & target, const QString qint64 typeSize = isMask ? sizeof(BEE::Mask_t) : sizeof(BEE::Simmat_t); // Get matrix data - qint64 bytesExpected = rows*cols*typeSize; - qint64 rowSize = cols * typeSize; // after reading the header, we are at the start of the matrix data qint64 data_pos = file.pos(); - qint64 totalSize = data_pos + bytesExpected; - // Map each unique label to a list of positions in the gallery QMap > galleryIndices; diff --git a/openbr/plugins/misc.cpp b/openbr/plugins/misc.cpp index 365cc67..ecfadd1 100644 --- a/openbr/plugins/misc.cpp +++ b/openbr/plugins/misc.cpp @@ -703,7 +703,7 @@ class FileExclusionTransform : public UntrainableMetaTransform QSet excluded; - void project(const Template & src, Template & dst) const + void project(const Template &, Template &) const { qFatal("FileExclusion can't do anything here"); } -- libgit2 0.21.4