From dfb65d810c9c96a0b235d8c66eefd43fde199933 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Tue, 9 Apr 2013 16:51:30 -0700 Subject: [PATCH] avoid unused arguments compiler warning --- src/png_reader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/png_reader.cpp b/src/png_reader.cpp index e1a2466e5..e474bb83e 100644 --- a/src/png_reader.cpp +++ b/src/png_reader.cpp @@ -146,7 +146,7 @@ void png_reader::init() throw image_reader_exception("failed to create info_ptr"); } } - catch (std::exception const& ex) + catch (std::exception const& /*ex*/) { png_destroy_read_struct(&png_ptr,0,0); throw; @@ -204,7 +204,7 @@ void png_reader::read(unsigned x0, unsigned y0,image_data_32& image) throw image_reader_exception("failed to create info_ptr"); } } - catch (std::exception const& ex) + catch (std::exception const& /*ex*/) { png_destroy_read_struct(&png_ptr,0,0); throw;