Fix some warnings in some unusual #ifdef combinations
Bug #101812
diff --git a/poppler/PSOutputDev.cc b/poppler/PSOutputDev.cc
index c7a6057..0ff0bbb 100644
--- a/poppler/PSOutputDev.cc
+++ b/poppler/PSOutputDev.cc
@@ -3284,10 +3284,10 @@
int nStripes, stripeH, stripeY;
int c, w, h, x, y, comp, i;
int numComps, initialNumComps;
-#endif
char hexBuf[32*2 + 2]; // 32 values X 2 chars/value + line ending + null
Guchar digit;
GBool isGray;
+#endif
if (!postInitDone) {
postInit();
diff --git a/poppler/Stream.cc b/poppler/Stream.cc
index e3d5cf6..606902f 100644
--- a/poppler/Stream.cc
+++ b/poppler/Stream.cc
@@ -221,7 +221,6 @@
int encoding;
GBool endOfLine, byteAlign, endOfBlock, black;
int columns, rows;
- int colorXform;
Object globals, obj;
if (!strcmp(name, "ASCIIHexDecode") || !strcmp(name, "AHx")) {
@@ -307,14 +306,14 @@
str = new CCITTFaxStream(str, encoding, endOfLine, byteAlign,
columns, rows, endOfBlock, black);
} else if (!strcmp(name, "DCTDecode") || !strcmp(name, "DCT")) {
- colorXform = -1;
+#if HAVE_DCT_DECODER
+ int colorXform = -1;
if (params->isDict()) {
if (params->dictLookup("ColorTransform", &obj, recursion)->isInt()) {
colorXform = obj.getInt();
}
obj.free();
}
-#ifdef HAVE_DCT_DECODER
str = new DCTStream(str, colorXform, dict, recursion);
#else
error(errSyntaxError, getPos(), "Unknown filter '{0:s}'", name);