Skip to content

Commit

Permalink
Merge pull request #42 from ethz-asl/fix/warning
Browse files Browse the repository at this point in the history
Fix warnings and switch on Werror
  • Loading branch information
simonlynen committed Sep 9, 2015
2 parents 21aedcb + 63c121b commit 89e891f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ endif(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
set(DOXYFILE_LATEX false)
include(UseDoxygen)

# Compilation
add_definitions(-Wall)
# Switch on warnings.
add_definitions(-Wall -Wextra)

# Boost required for any and cstdint on MSVC < 2010
find_package(Boost COMPONENTS REQUIRED)
Expand Down
2 changes: 1 addition & 1 deletion nabo/brute_force_cpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ namespace Nabo
}

template<typename T>
unsigned long BruteForceSearch<T>::knn(const Matrix& query, IndexMatrix& indices, Matrix& dists2, const Vector& maxRadii, const Index k, const T epsilon, const unsigned optionFlags) const
unsigned long BruteForceSearch<T>::knn(const Matrix& query, IndexMatrix& indices, Matrix& dists2, const Vector& maxRadii, const Index k, const T /*epsilon*/, const unsigned optionFlags) const
{
checkSizesKnn(query, indices, dists2, k, optionFlags, &maxRadii);

Expand Down
2 changes: 1 addition & 1 deletion tests/knnbench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ BenchResult doBenchType(const typename NearestNeighbourSearch<T>::SearchType typ
const typename NearestNeighbourSearch<T>::Matrix& d,
const typename NearestNeighbourSearch<T>::Matrix& q,
const int K,
const int itCount,
const int /*itCount*/,
const int searchCount)
{
typedef NearestNeighbourSearch<T> nnsT;
Expand Down

0 comments on commit 89e891f

Please sign in to comment.