summaryrefslogtreecommitdiff
path: root/indra/newview/llmaterialmgr.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2013-01-04 14:12:05 -0500
committerOz Linden <oz@lindenlab.com>2013-01-04 14:12:05 -0500
commit8b78b9960a32fb7a8a8663478d3fd30de65095fd (patch)
treec5b4f5d3a20958f49f36baa2c6433cf20f394064 /indra/newview/llmaterialmgr.cpp
parent80b734575d7205c91b214b69cebf87c242cd9388 (diff)
add conditional to suppress unused variable warning in Release builds
Diffstat (limited to 'indra/newview/llmaterialmgr.cpp')
-rw-r--r--indra/newview/llmaterialmgr.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/indra/newview/llmaterialmgr.cpp b/indra/newview/llmaterialmgr.cpp
index 3dd60f5dc3..3138bfd4e1 100644
--- a/indra/newview/llmaterialmgr.cpp
+++ b/indra/newview/llmaterialmgr.cpp
@@ -384,20 +384,22 @@ void LLMaterialMgr::onPutResponse(bool success, const LLSD& content)
for (LLSD::array_const_iterator faceIter = response_data.beginArray(); faceIter != response_data.endArray(); ++faceIter)
{
- const LLSD& face_data = *faceIter;
+# ifndef LL_RELEASE_FOR_DOWNLOAD
+ const LLSD& face_data = *faceIter; // conditional to avoid unused variable warning
+# endif
llassert(face_data.isMap());
llassert(face_data.has(MATERIALS_CAP_OBJECT_ID_FIELD));
llassert(face_data[MATERIALS_CAP_OBJECT_ID_FIELD].isInteger());
-// U32 local_id = face_data[MATERIALS_CAP_OBJECT_ID_FIELD].asInteger();
+ // U32 local_id = face_data[MATERIALS_CAP_OBJECT_ID_FIELD].asInteger();
llassert(face_data.has(MATERIALS_CAP_FACE_FIELD));
llassert(face_data[MATERIALS_CAP_FACE_FIELD].isInteger());
-// S32 te = face_data[MATERIALS_CAP_FACE_FIELD].asInteger();
+ // S32 te = face_data[MATERIALS_CAP_FACE_FIELD].asInteger();
llassert(face_data.has(MATERIALS_CAP_MATERIAL_ID_FIELD));
llassert(face_data[MATERIALS_CAP_MATERIAL_ID_FIELD].isBinary());
-// LLMaterialID material_id(face_data[MATERIALS_CAP_MATERIAL_ID_FIELD].asBinary());
+ // LLMaterialID material_id(face_data[MATERIALS_CAP_MATERIAL_ID_FIELD].asBinary());
// *TODO: do we really still need to process this?
}