mirror of
https://github.com/boostorg/gil.git
synced 2026-02-15 01:02:09 +00:00
Clean up several warnings about unreferenced formal parameters
Add comment to premultiply.hpp: - FIXME: Is c input paramater not used intentionally?
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
|
||||
#include <boost/gil/rgba.hpp>
|
||||
|
||||
#include <boost/core/ignore_unused.hpp>
|
||||
#include <boost/mpl/for_each.hpp>
|
||||
#include <boost/mpl/remove.hpp>
|
||||
|
||||
@@ -25,6 +26,8 @@ struct channel_premultiply
|
||||
template <typename Channel>
|
||||
void operator()(Channel c) const
|
||||
{
|
||||
// FIXME: Is c input paramater not used intentionally? Add comment on relation between src_ vs c.
|
||||
|
||||
// @todo: need to do a “channel_convert” too, in case the channel types aren't the same?
|
||||
get_color(dst_, Channel()) = channel_multiply(get_color(src_,Channel()), alpha_or_max(src_));
|
||||
}
|
||||
@@ -41,9 +44,11 @@ namespace detail
|
||||
}
|
||||
|
||||
template <typename SrcP, typename DstP>
|
||||
void assign_alpha_if(mpl::false_, SrcP const &src, DstP &dst)
|
||||
void assign_alpha_if(mpl::false_, SrcP const& src, DstP& dst)
|
||||
{
|
||||
// nothing to do
|
||||
// nothing to do
|
||||
boost::ignore_unused(src);
|
||||
boost::ignore_unused(dst);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
|
||||
#include <boost/gil/extension/dynamic_image/dynamic_image_all.hpp>
|
||||
|
||||
#include <boost/core/ignore_unused.hpp>
|
||||
#include <boost/crc.hpp>
|
||||
#include <boost/lambda/bind.hpp>
|
||||
#include <boost/lambda/lambda.hpp>
|
||||
@@ -170,7 +171,11 @@ private:
|
||||
template <typename Img> void basic_test(const string& prefix);
|
||||
template <typename View> void view_transformations_test(const View& img_view, const string& prefix);
|
||||
template <typename View> void homogeneous_view_transformations_test(const View& img_view, const string& prefix, mpl::true_);
|
||||
template <typename View> void homogeneous_view_transformations_test(const View& img_view, const string& prefix, mpl::false_) {}
|
||||
template <typename View> void homogeneous_view_transformations_test(const View& img_view, const string& prefix, mpl::false_)
|
||||
{
|
||||
boost::ignore_unused(img_view);
|
||||
boost::ignore_unused(prefix);
|
||||
}
|
||||
template <typename View> void histogram_test(const View& img_view, const string& prefix);
|
||||
void virtual_view_test();
|
||||
void packed_image_test();
|
||||
|
||||
Reference in New Issue
Block a user