[poppler] goo/TiffWriter.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Fri Nov 30 16:50:51 PST 2012


 goo/TiffWriter.cc |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 85572b85950ed4e4421f1e61e704e5c250ca27d9
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sat Dec 1 01:50:25 2012 +0100

    Silence gcc warning
    
    Bug #57572

diff --git a/goo/TiffWriter.cc b/goo/TiffWriter.cc
index 660764c..7e8f330 100644
--- a/goo/TiffWriter.cc
+++ b/goo/TiffWriter.cc
@@ -40,10 +40,10 @@ void TiffWriter::setCompressionString(const char *compressionStringArg)
 bool TiffWriter::init(FILE *openedFile, int width, int height, int hDPI, int vDPI)
 {
   unsigned int compression;
-  uint16 photometric;
+  uint16 photometric = 0;
   uint32 rowsperstrip = (uint32) -1;
   int bitspersample;
-  uint16 samplesperpixel;
+  uint16 samplesperpixel = 0;
   const struct compression_name_tag {
     const char *compressionName;		// name of the compression option from the command line
     unsigned int compressionCode;		// internal libtiff code


More information about the poppler mailing list