From dd268e8f679cdc840f48618925607bff9db6aef1 Mon Sep 17 00:00:00 2001 From: Mateusz Loskot Date: Tue, 27 Mar 2018 13:42:35 +0200 Subject: [PATCH] Fix potentially uninitialized local variable y Minor severity: compiler warning clean up --- include/boost/gil/algorithm.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/gil/algorithm.hpp b/include/boost/gil/algorithm.hpp index 1ca884a0f..7b592c2a9 100644 --- a/include/boost/gil/algorithm.hpp +++ b/include/boost/gil/algorithm.hpp @@ -730,7 +730,7 @@ void uninitialized_copy_pixels(const View1& view1, const View2& view2) { view2.begin().x(), is_planar()); else { - typename View1::y_coord_t y; + typename View1::y_coord_t y = 0; try { for (y=0; y