From 76a57cddcc5e0dfab6bd3c8077cd569eba146f10 Mon Sep 17 00:00:00 2001 From: Hib Eris Date: Sat, 3 Jul 2010 10:43:19 +0200 Subject: [PATCH 4/4] [utils] Fix uninitialized warning when compiling with -O2 By default poppler compiles with -O2. This gives a warning about 'output' may be used uninitialized in HtmlOutputDev.cc. When compiling with -O0 (make CXXFLAGS=" -Wall -Wno-write-strings -O0" HtmlOutputDev.o), this warning does not appear, so it is more likely an error in the compiler optimization code. Fixing it in poppler won't hurt though. --- utils/HtmlOutputDev.cc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/utils/HtmlOutputDev.cc b/utils/HtmlOutputDev.cc index 81f8b88..bbd4d8b 100644 --- a/utils/HtmlOutputDev.cc +++ b/utils/HtmlOutputDev.cc @@ -1529,7 +1529,7 @@ void HtmlOutputDev::dumpMetaVars(FILE *file) GBool HtmlOutputDev::dumpDocOutline(Catalog* catalog) { - FILE * output; + FILE * output = NULL; GBool bClose = gFalse; if (!ok || xml) -- 1.6.4.2