From f6439b57ce6e90ea6a86c83b8cf7a4df1e2e691e Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Wed, 25 Aug 2021 14:37:07 +0900 Subject: [PATCH] Fix warning regarding unused variables --- example02_threaded_raytracing/src/rayTracer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/example02_threaded_raytracing/src/rayTracer.cpp b/example02_threaded_raytracing/src/rayTracer.cpp index 57a0de7..6f884b4 100644 --- a/example02_threaded_raytracing/src/rayTracer.cpp +++ b/example02_threaded_raytracing/src/rayTracer.cpp @@ -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; };