avoid unused arguments compiler warning

This commit is contained in:
Dane Springmeyer 2013-04-09 16:51:30 -07:00
parent c47d5f1916
commit dfb65d810c

View file

@ -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;