OpenImageIO/oiio — pull request #396 by Nava2 (2012-07-10 04:24:42+00:00)
Title: Warning fixes

This fixes log files sent earlier today by @hobbes1069.

I can confirm most of them, but some files are not compiled as I do not have some plugins compiling due to not having libraries. I tried my best to match the warnings to the files that I had to do by hand, but I would not be surprised in the least if I missed some.

In other thoughts, I feel as though this could be done much more elegantly.

Currently, I repeated this a lot:

```c++
size_t b = fwrite (data, sizeof(float), m_spec.width, m_file);
if (b != (size_t)m_spec.width) {
error ("Failed write zfile::open (err: %d)", b);
return false;
}```

In one file, I was able to use a simple macro, but perhaps this is something that could be addressed through an inline method or a better defined set. Just some thoughts.

Oh, and all criticism is welcome, what ever there may be. I want to learn more!