[poppler] goo/PNGWriter.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Sun Aug 21 14:29:04 PDT 2011
goo/PNGWriter.cc | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 6166c3a37a4d6307d4f23ee272ea07c95bbba74a
Author: Albert Astals Cid <aacid at kde.org>
Date: Sun Aug 21 23:31:30 2011 +0200
Silence silly gcc
diff --git a/goo/PNGWriter.cc b/goo/PNGWriter.cc
index 1e78de5..46cd2b7 100644
--- a/goo/PNGWriter.cc
+++ b/goo/PNGWriter.cc
@@ -84,8 +84,9 @@ bool PNGWriter::init(FILE *f, int width, int height, int hDPI, int vDPI)
// Set up the type of PNG image and the compression level
png_set_compression_level(png_ptr, Z_BEST_COMPRESSION);
- png_byte bit_depth;
- png_byte color_type;
+ // Silence silly gcc
+ png_byte bit_depth = -1;
+ png_byte color_type = -1;
switch (format) {
case RGB:
bit_depth = 8;
More information about the poppler
mailing list