* 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.
---
milena/ChangeLog | 13 +++++++++++++
milena/mln/algebra/mat.hh | 4 ++--
milena/mln/linear/gaussian.hh | 3 ++-
milena/mln/registration/icp.hh | 10 +++++++---
milena/tests/io/magick/load.cc | 2 +-
milena/tests/io/magick/save.cc | 2 +-
6 files changed, 26 insertions(+), 8 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 7c2871f..11fa869 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,3 +1,16 @@
+2013-06-24 Roland Levillain <roland(a)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(a)lrde.epita.fr>
Avoid comparisons between signed and unsigned values.
diff --git a/milena/mln/algebra/mat.hh b/milena/mln/algebra/mat.hh
index 6deafe9..9e763ca 100644
--- a/milena/mln/algebra/mat.hh
+++ b/milena/mln/algebra/mat.hh
@@ -1,4 +1,4 @@
-// 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();
diff --git a/milena/mln/linear/gaussian.hh b/milena/mln/linear/gaussian.hh
index 0e1d5a9..0a4b71f 100644
--- a/milena/mln/linear/gaussian.hh
+++ b/milena/mln/linear/gaussian.hh
@@ -1,5 +1,5 @@
// 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);
diff --git a/milena/mln/registration/icp.hh b/milena/mln/registration/icp.hh
index 7c82202..40c19d3 100644
--- a/milena/mln/registration/icp.hh
+++ b/milena/mln/registration/icp.hh
@@ -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;
diff --git a/milena/tests/io/magick/load.cc b/milena/tests/io/magick/load.cc
index 34af3f8..1b094f2 100644
--- a/milena/tests/io/magick/load.cc
+++ b/milena/tests/io/magick/load.cc
@@ -39,7 +39,7 @@
#include "tests/data.hh"
-int main(int /* argc */, char* argv[])
+int main()
{
using namespace mln;
diff --git a/milena/tests/io/magick/save.cc b/milena/tests/io/magick/save.cc
index d650180..4430db8 100644
--- a/milena/tests/io/magick/save.cc
+++ b/milena/tests/io/magick/save.cc
@@ -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;
--
1.7.10.4