---
milena/ChangeLog | 4 ++++
milena/mln/draw/box_plain.hh | 9 +++------
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 2454245..4c844e5 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,3 +1,7 @@
+2012-05-07 Guillaume Lazzara <z(a)lrde.epita.fr>
+
+ * mln/draw/box_plain.hh: Fix unused variable warning.
+
2011-11-30 Guillaume Lazzara <z(a)lrde.epita.fr>
* mln/accu/math/sumpow.hh: New accumulator.
diff --git a/milena/mln/draw/box_plain.hh b/milena/mln/draw/box_plain.hh
index ec5b865..ed6ea9b 100644
--- a/milena/mln/draw/box_plain.hh
+++ b/milena/mln/draw/box_plain.hh
@@ -1,4 +1,4 @@
-// Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
+// Copyright (C) 2009, 2012 EPITA Research and Development Laboratory (LRDE)
//
// This file is part of Olena.
//
@@ -73,11 +73,8 @@ namespace mln
const mln_value(I)& v)
{
mln_precondition(exact(ima).is_valid());
-
- mln_psite(I) pmin = exact(b).pmin();
- mln_psite(I) pmax = exact(b).pmax();
-
- mln_precondition(exact(ima).has(pmin) && exact(ima).has(pmax));
+ mln_precondition(exact(ima).has(exact(b).pmin())
+ && exact(ima).has(exact(b).pmax()));
data::fill((ima | b).rw(), v);
}
--
1.7.2.5
Show replies by date