GfxState: Move vars inside the ifdef they are used in
diff --git a/poppler/GfxState.cc b/poppler/GfxState.cc
index 3061abb..f7810cb 100644
--- a/poppler/GfxState.cc
+++ b/poppler/GfxState.cc
@@ -1825,9 +1825,9 @@
     error(errSyntaxError, -1, "Bad ICCBased color space");
     return nullptr;
   }
+#ifdef USE_CMS
   const Object &obj1Ref = arr->getNF(1);
   const Ref iccProfileStreamA = obj1Ref.isRef() ? obj1Ref.getRef() : Ref::INVALID();
-#ifdef USE_CMS
   // check cache
   if (out && iccProfileStreamA != Ref::INVALID()) {
     if (auto *item = out->getIccColorSpaceCache()->lookup(iccProfileStreamA)) {