mirror of
https://github.com/boostorg/gil.git
synced 2026-02-18 14:12:10 +00:00
Fix potentially uninitialized local variable y
Minor severity: compiler warning clean up
This commit is contained in:
committed by
Stefan Seefeld
parent
d9f8b7564e
commit
dd268e8f67
@@ -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<view1.height(); ++y)
|
||||
detail::uninitialized_copy_aux(view1.row_begin(y), view1.row_end(y),
|
||||
|
||||
Reference in New Issue
Block a user