Fix warning regarding unused variables
This commit is contained in:
parent
962085d475
commit
f6439b57ce
1 changed files with 4 additions and 2 deletions
|
@ -56,11 +56,13 @@ std::string Ex02::RT::Image::writeToPNG(const std::string &filename) const {
|
|||
return "ERROR";
|
||||
}
|
||||
|
||||
const static auto pngErrorLFn = [](png_structp psp, png_const_charp message) {
|
||||
const static auto pngErrorLFn = [](png_structp /*unused*/,
|
||||
png_const_charp message) {
|
||||
std::cerr << "WARNING [libpng]: " << message << std::endl;
|
||||
};
|
||||
|
||||
const static auto pngWarnLFn = [](png_structp psp, png_const_charp message) {
|
||||
const static auto pngWarnLFn = [](png_structp /*unused*/,
|
||||
png_const_charp message) {
|
||||
std::cerr << "ERROR [libpng]: " << message << std::endl;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue