Skip to content

Commit

Permalink
Fix warning (godotengine#851)
Browse files Browse the repository at this point in the history
* remove unused variable

* modify variable type from int to size_t

* fix previous delete, we need to call chinese_whispers here but we don't need its result now
  • Loading branch information
hwchiu authored and davisking committed Sep 29, 2017
1 parent fa2f35f commit ea9aae0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tools/python/src/face_recognition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ boost::python::list chinese_whispers_clustering(boost::python::list descriptors,
edges.push_back(sample_pair(i,j));
}
}
const auto num_clusters = chinese_whispers(edges, labels);
chinese_whispers(edges, labels);
for (size_t i = 0; i < labels.size(); ++i)
{
clusters.append(labels[i]);
Expand Down Expand Up @@ -242,7 +242,6 @@ boost::python::list get_face_chips (

boost::python::list chips_list;

int num_faces = faces.size();
std::vector<chip_details> dets;
for (auto& f : faces)
dets.push_back(get_face_chip_details(f, size, padding));
Expand All @@ -253,9 +252,9 @@ boost::python::list get_face_chips (
{
boost::python::list img;

for(int row=0; row<size; row++) {
for(size_t row=0; row<size; row++) {
boost::python::list row_list;
for(int col=0; col<size; col++) {
for(size_t col=0; col<size; col++) {
rgb_pixel pixel = chip(row, col);
boost::python::list item;

Expand Down

0 comments on commit ea9aae0

Please sign in to comment.