Skip to content

Review: Kevin Brightwell's error checking and warning fixes#413

Merged
lgritz merged 2 commits intomasterfrom
kevin-lg-squash
Jul 26, 2012
Merged

Review: Kevin Brightwell's error checking and warning fixes#413
lgritz merged 2 commits intomasterfrom
kevin-lg-squash

Conversation

@lgritz
Copy link
Collaborator

@lgritz lgritz commented Jul 25, 2012

This is just a squash and minor cleanup of #396. LG fixed a few bugs and rearranged the parameter ordering of those fread/fwrite helper functions (to match the built-in one, less confusing that way). It changed enough that I thought it worth showing everybody before a commit. I couldn't amend Kevin's pull request, so I just submitted another, but this is really just a revision of that request.

Here's the final log entry:

Fix many compiler warnings and beef up I/O error checking:

  • Many cases where we were ignoring the results of fread or fwrite, so
    now we religiously check the results and set errors appropriately
    (this affected bmp, fits, ico, jpeg2000, sgi, targa, tiff, webp, zfile).
  • Some unused variables.
    This work was mostly Kevin Brightwell, with a cleanup pass by Larry Gritz.

@lgritz lgritz mentioned this pull request Jul 25, 2012
@lgritz
Copy link
Collaborator Author

lgritz commented Jul 26, 2012

OK, since this passes tests, I'm going to merge it. Cross fingers.

StefanStavrev and others added 2 commits July 25, 2012 22:58
* Many cases where we were ignoring the results of fread or fwrite, so
  now we religiously check the results and set errors appropriately
  (this affected bmp, fits, ico, jpeg2000, sgi, targa, tiff, webp, zfile).
* Some unused variables.
This work was mostly Kevin Brightwell, with a cleanup pass by Larry Gritz.
@lgritz lgritz merged commit 5336423 into master Jul 26, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants