Commit 1b38552491597f113bca8ee0a12469a139e93303
1 parent
12d4b019
fixed gcc compiler warnings
Showing
3 changed files
with
5 additions
and
2 deletions
openbr/core/bee.cpp
| ... | ... | @@ -240,7 +240,7 @@ void BEE::makeMask(const QString &targetInput, const QString &queryInput, const |
| 240 | 240 | int partitions = targets.first().get<int>("crossValidate"); |
| 241 | 241 | if (partitions == 0) writeMask(makeMask(targets, queries), mask, targetInput, queryInput); |
| 242 | 242 | else { |
| 243 | - if (!mask.contains("%1")) qFatal("Mask file name missing partition number place marker (%1)"); | |
| 243 | + if (!mask.contains("%1")) qFatal("Mask file name missing partition number place marker (%%1)"); | |
| 244 | 244 | for (int i=0; i<partitions; i++) { |
| 245 | 245 | writeMask(makeMask(targets, queries, i), mask.arg(i), targetInput, queryInput); |
| 246 | 246 | } | ... | ... |
openbr/core/core.cpp
| ... | ... | @@ -205,7 +205,7 @@ struct AlgorithmCore |
| 205 | 205 | QList<int> partitionSizes; |
| 206 | 206 | QList<File> outputFiles; |
| 207 | 207 | if (output.contains("split")) { |
| 208 | - if (!output.fileName().contains("%1")) qFatal("Output file name missing split number place marker (%1)"); | |
| 208 | + if (!output.fileName().contains("%1")) qFatal("Output file name missing split number place marker (%%1)"); | |
| 209 | 209 | partitionSizes = output.getList<int>("split"); |
| 210 | 210 | for (int i=0; i<partitionSizes.size(); i++) { |
| 211 | 211 | File splitOutputFile = output.fileName().arg(i); | ... | ... |
openbr/plugins/quantize2.cpp
| ... | ... | @@ -30,6 +30,9 @@ class BayesianQuantizationTransform : public Transform |
| 30 | 30 | int low = 0; |
| 31 | 31 | int high = cumulativeGenuines.size()-1; |
| 32 | 32 | int index = cumulativeGenuines.size()/2; |
| 33 | + (void) cumulativeImpostors; | |
| 34 | + (void) thresholds; | |
| 35 | + (void) thresholdIndex; | |
| 33 | 36 | |
| 34 | 37 | while ((index != low) && (index != high)) { |
| 35 | 38 | index = (high - low)/2; | ... | ... |