From 3f686ec017426563c1c61d62b3d833bf15d323f6 Mon Sep 17 00:00:00 2001 From: Roland Winklmeier Date: Tue, 10 Nov 2015 14:34:59 +0100 Subject: [PATCH] Fix gcc clobbered warning --- src/xbus/libxplanemp/src/BitmapUtils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xbus/libxplanemp/src/BitmapUtils.cpp b/src/xbus/libxplanemp/src/BitmapUtils.cpp index 43a9193ec..fa32476f5 100644 --- a/src/xbus/libxplanemp/src/BitmapUtils.cpp +++ b/src/xbus/libxplanemp/src/BitmapUtils.cpp @@ -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.