From 3b26cc3e89d473499165db17d617d1c0fc8db945 Mon Sep 17 00:00:00 2001 From: Adrian Johnson Date: Sat, 2 Sep 2017 17:50:58 +0930 Subject: [PATCH 2/2] Fix warning when compiling with cygwin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ImageOutputDev.cc:532:14: warning: ‘f’ may be used uninitialized in this function [-Wmaybe-uninitialized] --- utils/ImageOutputDev.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/ImageOutputDev.cc b/utils/ImageOutputDev.cc index 33cbb714..e32e73dc 100644 --- a/utils/ImageOutputDev.cc +++ b/utils/ImageOutputDev.cc @@ -376,7 +376,7 @@ void ImageOutputDev::writeRawImage(Stream *str, const char *ext) { void ImageOutputDev::writeImageFile(ImgWriter *writer, ImageFormat format, const char *ext, Stream *str, int width, int height, GfxImageColorMap *colorMap) { - FILE *f; + FILE *f = NULL; /* squelch bogus compiler warning */ ImageStream *imgStr = NULL; unsigned char *row; unsigned char *rowp; -- 2.11.0