Fix build warnings from gcc 4.8

This commit is contained in:
Andrey Kamaev
2013-04-17 22:01:03 +04:00
committed by Andrey Pavlenko
parent 9cce8ca4b6
commit 2665c39a0d
12 changed files with 48 additions and 41 deletions

View File

@@ -42,7 +42,6 @@ template <typename Distance>
void find_nearest(const Matrix<typename Distance::ElementType>& dataset, typename Distance::ElementType* query, int* matches, int nn,
int skip = 0, Distance distance = Distance())
{
typedef typename Distance::ElementType ElementType;
typedef typename Distance::ResultType DistanceType;
int n = nn + skip;