Thierry Geraud wrote:
Index: mln/morpho/erosion.hh
--- mln/morpho/erosion.hh (revision 2743)
+++ mln/morpho/erosion.hh (working copy)
@@ -52,6 +52,25 @@
# ifndef MLN_INCLUDE_ONLY
+
+ namespace internal
+ {
+
+ template <typename I, typename W>
+ inline
+ void
+ erosion_tests(const Image<I>& input_, const Window<W>& win_)
+ {
+ const I& input = exact(input_);
+ const W& win = exact(win_);
+
+ mln_precondition(exact(input).has_data());
+ mln_precondition(! exact(win).is_empty());
+ }
+
+ } // end of mln::morpho::internal
+
+
Si on est en -DNDEBUG les2 variables créées ne servent pas.
../milena/mln/morpho/erosion.hh:64: warning: unused variable 'input'
../milena/mln/morpho/erosion.hh:65: warning: unused variable 'win'
--
Vivien Delmon
- ZiXiS -
CSI 2009