Skip to content

Commit

Permalink
Fix warning: unused variable 'src_p' [-Wunused-variable]
Browse files Browse the repository at this point in the history
  • Loading branch information
mloskot committed Mar 21, 2019
1 parent d381474 commit fc70daf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/boost/gil/extension/numeric/resample.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ template <typename Sampler, // Models SamplerConcept
typename SrcView, // Models RandomAccess2DImageViewConcept
typename DstView, // Models MutableRandomAccess2DImageViewConcept
typename MapFn> // Models MappingFunctionConcept
void resample_pixels(const SrcView& src_view, const DstView& dst_view, const MapFn& dst_to_src, Sampler sampler=Sampler()) {
void resample_pixels(const SrcView& src_view, const DstView& dst_view, const MapFn& dst_to_src, Sampler sampler=Sampler())
{
typename DstView::point_t dst_dims=dst_view.dimensions();
typename DstView::point_t dst_p;
typename mapping_traits<MapFn>::result_type src_p;

for (dst_p.y=0; dst_p.y<dst_dims.y; ++dst_p.y) {
typename DstView::x_iterator xit = dst_view.row_begin(dst_p.y);
Expand Down

0 comments on commit fc70daf

Please sign in to comment.