boostorg / gil

Boost.GIL - Generic Image Library | Requires C++14 since Boost 1.80
https://boostorg.github.io/gil
Boost Software License 1.0
178 stars 164 forks source link

fix: Unused variable warning #704

Closed marco-langer closed 2 years ago

marco-langer commented 2 years ago

Description

This PR fixes an unused variable warning.

Minimal Working Example

Compile this with -Wall -Wextra -Wpedantic

#include <boost/gil/extension/io/jpeg.hpp>
#include <boost/gil/extension/dynamic_image/dynamic_image_all.hpp>

namespace gil = boost::gil;

int main()
{
    using my_image = gil::any_image<gil::gray8_image_t>;
    my_image img;

    gil::read_image("test.jpeg", img, gil::jpeg_tag{});

    return 0;
}

Edit: fixed a second unused variable. This did not show up as a warning, I just saw it as I was browsing the algorithm.hpp file.

Tasklist