Commit 4cdfb68a authored by Roland Levillain's avatar Roland Levillain
Browse files

Address compiler warnings about unused variables and arguments.

	* mln/algebra/mat.hh (mln::algebra::impl::det)
	* mln/linear/gaussian.hh (mln::linear::impl::generic_filter_)
	* mln/registration/icp.hh
	(mln::registration::remove_too_far_sites_debug)
	(mln::registration::compute_distance_criteria)
	* tests/io/magick/load.cc (main)
	* tests/io/magick/save.cc (main):
	Here.
parent cd5f19d4
2013-06-24 Roland Levillain <roland@lrde.epita.fr>
Address compiler warnings about unused variables and arguments.
* mln/algebra/mat.hh (mln::algebra::impl::det)
* mln/linear/gaussian.hh (mln::linear::impl::generic_filter_)
* mln/registration/icp.hh
(mln::registration::remove_too_far_sites_debug)
(mln::registration::compute_distance_criteria)
* tests/io/magick/load.cc (main)
* tests/io/magick/save.cc (main):
Here.
2013-06-20 Roland Levillain <roland@lrde.epita.fr>
 
Avoid comparisons between signed and unsigned values.
// Copyright (C) 2006, 2008, 2009, 2012 EPITA Research and Development
// Copyright (C) 2006, 2008, 2009, 2012, 2013 EPITA Research and Development
// Laboratory (LRDE)
//
// This file is part of Olena.
......@@ -907,7 +907,7 @@ namespace mln
template<unsigned n, typename T>
mln_sum_product(T,T)
det(const mat<n,n,T>& m)
det(const mat<n,n,T>& /* m */)
{
// Not implemented.
mlc_abort(T)::check();
......
// Copyright (C) 2001, 2002, 2003, 2004, 2007, 2008, 2009, 2010, 2011,
// 2012 EPITA Research and Development Laboratory (LRDE)
// 2012, 2013 EPITA Research and Development Laboratory (LRDE)
//
// This file is part of Olena.
//
......@@ -378,6 +378,7 @@ namespace mln
Image<I>& img_, const F& coef, int dir)
{
I& img = exact(img_);
(void) dir;
mln_precondition(dir < I::site::dim);
......
......@@ -343,7 +343,10 @@ namespace mln
for_all(p)
{
vec3d_f Pk_i = pair.first.rotate(p) + pair.second;
// FIXME: Unused variable; remove?
#if 0
vec3d_f Yk_i = closest_point(Pk_i);
#endif
int d_i = closest_point.dmap_X_(Pk_i);
if (d_i >= d_min && d_i <= d_max)
......@@ -370,12 +373,13 @@ namespace mln
}
/* FIXME: Unused argument `r'; remove? */
template <typename P, typename F>
void
compute_distance_criteria(const p_array<P>& P_,
const F& closest_point,
const std::pair<algebra::quat,mln_vec(P)>& pair,
unsigned r, int& d_min, int& d_max)
const F& closest_point,
const std::pair<algebra::quat,mln_vec(P)>& pair,
unsigned /* r */, int& d_min, int& d_max)
{
mln_piter(p_array<P>) p(P_);
accu::histo<value::int_u8> h;
......
......@@ -39,7 +39,7 @@
#include "tests/data.hh"
int main(int /* argc */, char* argv[])
int main()
{
using namespace mln;
......
......@@ -66,7 +66,7 @@ test(const image2d<T>& lena_mln, const std::string& temp_filename)
}
int main(int /* argc */, char* argv[])
int main()
{
using namespace mln;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment