Fix gcc clobbered warning

This commit is contained in:
Roland Winklmeier
2015-11-10 14:34:59 +01:00
committed by Mathew Sutcliffe
parent ec416c8028
commit 3f686ec017

View File

@@ -872,10 +872,10 @@ int CreateBitmapFromPNG(const char * inFilePath, struct ImageInfo * outImageInf
png_structp pngPtr = NULL;
png_infop infoPtr = NULL;
unsigned char * volatile buffer = NULL;
FILE * file = NULL;
FILE * volatile file = NULL;
size_t fileLength = 0;
outImageInfo->data = NULL;
char** rows = NULL;
char** volatile rows = NULL;
double lcl_gamma; // This will be the gamma of the file if it has one.
#if APL // Macs and PCs have different gamma responses.
double screen_gamma=1.8; // Darks look darker and brights brighter on the PC.