summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-02-27 22:33:42 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-02-27 22:33:42 (GMT)
commit8946d2f55e1042dbcfb5faa37d558c46cdea0eb1 (patch)
tree587fccae274c8b934f417019115f8f3ac1942df9 /Utilities
parent90c0fc8cc533c271aaf8e5955149edd7fff7885f (diff)
downloadCMake-8946d2f55e1042dbcfb5faa37d558c46cdea0eb1.zip
CMake-8946d2f55e1042dbcfb5faa37d558c46cdea0eb1.tar.gz
CMake-8946d2f55e1042dbcfb5faa37d558c46cdea0eb1.tar.bz2
COMP: Remove compile warning about shadow variables
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmexpat/xmlparse.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Utilities/cmexpat/xmlparse.c b/Utilities/cmexpat/xmlparse.c
index 0c84f22..29ea3d3 100644
--- a/Utilities/cmexpat/xmlparse.c
+++ b/Utilities/cmexpat/xmlparse.c
@@ -1185,14 +1185,14 @@ void *XML_GetBuffer(XML_Parser parser, int len)
bufferLim = newBuf + bufferSize;
#ifdef XML_CONTEXT_BYTES
if (bufferPtr) {
- int keep = bufferPtr - buffer;
- if (keep > XML_CONTEXT_BYTES)
- keep = XML_CONTEXT_BYTES;
- memcpy(newBuf, &bufferPtr[-keep], bufferEnd - bufferPtr + keep);
+ int xmKeep = bufferPtr - buffer;
+ if (xmKeep > XML_CONTEXT_BYTES)
+ xmKeep = XML_CONTEXT_BYTES;
+ memcpy(newBuf, &bufferPtr[-xmKeep], bufferEnd - bufferPtr + xmKeep);
FREE(buffer);
buffer = newBuf;
- bufferEnd = buffer + (bufferEnd - bufferPtr) + keep;
- bufferPtr = buffer + keep;
+ bufferEnd = buffer + (bufferEnd - bufferPtr) + xmKeep;
+ bufferPtr = buffer + xmKeep;
}
else {
bufferEnd = newBuf + (bufferEnd - bufferPtr);