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"); }