more VS2012 L4 warning fixes

This commit is contained in:
Thomas Fischer 2014-03-15 11:51:36 +01:00
parent 502e346eb6
commit 2844ab6912
20 changed files with 30 additions and 8 deletions

View file

@ -76,6 +76,7 @@ static void pngReadDataFn(png_structp png_ptr,
Stream *strm = (Stream*)png_get_io_ptr(png_ptr);
bool success = strm->read(length, data);
TORQUE_UNUSED(success);
AssertFatal(success, "pngReadDataFn - failed to read from stream!");
}
@ -89,6 +90,7 @@ static void pngWriteDataFn(png_structp png_ptr,
Stream *strm = (Stream*)png_get_io_ptr(png_ptr);
bool success = strm->write(length, data);
TORQUE_UNUSED(success);
AssertFatal(success, "pngWriteDataFn - failed to write to stream!");
}