Commit aac38bd4 authored by Roland Levillain's avatar Roland Levillain
Browse files

Address Clang warnings in Swilena.

	* dynamic_image2d.i: Here.
parent 478a682a
2014-05-22 Roland Levillain <roland@lrde.epita.fr>
Address Clang warnings in Swilena.
* dynamic_image2d.i: Here.
2013-09-10 Roland Levillain <roland@lrde.epita.fr>
Swilena: Remove lines `VARIABLE = @VARIABLE@' from Makefile.am's.
......
// -*- C++ -*-
// Copyright (C) 2008, 2009 EPITA Research and Development Laboratory (LRDE)
// Copyright (C) 2008, 2009, 2014 EPITA Research and Development
// Laboratory (LRDE).
//
// This file is part of Olena.
//
......@@ -152,7 +153,7 @@ namespace mln
/// 3).
dynamic_image2d(const box2d& b);
// FIXME: Add a virtual dtor?
virtual ~dynamic_image2d();
/// Initialize an empty image.
virtual void init_(const box2d& b);
......@@ -228,6 +229,12 @@ namespace mln
init_(b);
}
template <typename T>
inline
dynamic_image2d<T>::~dynamic_image2d()
{
}
template <typename T>
inline
void
......@@ -258,10 +265,11 @@ namespace mln
template <typename T>
inline
const T&
dynamic_image2d<T>::operator()(const point2d& p) const
dynamic_image2d<T>::operator()(const point2d&) const
{
// Dummy.
assert(false);
abort();
static T v;
return v;
}
// Dummy implementation, provided to have swig wrap the class (swig won't
......@@ -269,10 +277,11 @@ namespace mln
template <typename T>
inline
T&
dynamic_image2d<T>::operator()(const point2d& p)
dynamic_image2d<T>::operator()(const point2d&)
{
// Dummy.
assert(false);
abort();
static T v;
return v;
}
template <typename T>
......
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