Skip to content

Commit

Permalink
avoid unused arguments compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer authored and PetrDlouhy committed Aug 21, 2013
1 parent e3e71f1 commit 0ab983e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/png_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,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);
fclose(fp);
Expand Down Expand Up @@ -198,7 +198,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);
fclose(fp);
Expand Down

0 comments on commit 0ab983e

Please sign in to comment.