From d9e7ff588fb79fc8d89ae215730010b0eff3770f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20=C5=81oskot?= Date: Thu, 21 Mar 2019 18:54:06 +0100 Subject: [PATCH] Comment unused parameter of channel_premultiply call operator (#264) Fix warning: unused parameter `c` [-Wunused-parameter]. Clean up typographic quotation marks. --- include/boost/gil/premultiply.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/gil/premultiply.hpp b/include/boost/gil/premultiply.hpp index cb76b8d9c..e9efa65fc 100644 --- a/include/boost/gil/premultiply.hpp +++ b/include/boost/gil/premultiply.hpp @@ -24,11 +24,11 @@ struct channel_premultiply {} template - void operator()(Channel c) const + void operator()(Channel /* channel */) const { - // FIXME: Is c input paramater not used intentionally? Add comment on relation between src_ vs c. + // TODO: Explain why 'channel' input paramater is not used, or used as tag only. - // @todo: need to do a “channel_convert” too, in case the channel types aren't the same? + // @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_)); } SrcP const & src_;