You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by dm...@apache.org on 2005/05/06 19:21:17 UTC
cvs commit: xml-xalan/c/src/xalanc/Harness XalanDiagnosticMemoryManager.cpp XalanDiagnosticMemoryManager.hpp
dmitryh 2005/05/06 10:21:17
Modified: c/src/xalanc/Harness XalanDiagnosticMemoryManager.cpp
XalanDiagnosticMemoryManager.hpp
Log:
Fix warnings from gcc 3.4.3 compiler
Revision Changes Path
1.4 +8 -8 xml-xalan/c/src/xalanc/Harness/XalanDiagnosticMemoryManager.cpp
Index: XalanDiagnosticMemoryManager.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/xalanc/Harness/XalanDiagnosticMemoryManager.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- XalanDiagnosticMemoryManager.cpp 3 May 2005 16:33:08 -0000 1.3
+++ XalanDiagnosticMemoryManager.cpp 6 May 2005 17:21:17 -0000 1.4
@@ -57,7 +57,7 @@
if (m_allocations.size() > 0 && m_stream != 0)
{
*m_stream << "Detected memory leaks. "
- << m_allocations.size()
+ << int_type(m_allocations.size())
<< " blocks are still allocated.\n";
}
}
@@ -74,7 +74,7 @@
if (m_stream != 0)
{
*m_stream << "Attempt to allocate "
- << size
+ << int_type(size)
<< " bytes from locked instance "
<< this
<< ".\n";
@@ -167,16 +167,16 @@
if (diagStream != 0)
{
*diagStream << "Total number of allocations: "
- << m_sequence
+ << int_type(m_sequence)
<< ".\n"
<< "Total current allocations: "
- << m_allocations.size()
+ << int_type(m_allocations.size())
<< ".\n"
<< "Total bytes currently allocated: "
- << m_currentAllocated
+ << int_type(m_currentAllocated)
<< ".\n"
<< "Peak bytes allocated: "
- << m_highWaterMark
+ << int_type(m_highWaterMark)
<< ".\n";
for(const_iterator i = m_allocations.begin();
@@ -192,9 +192,9 @@
<< thePointer
<< " with sequence "
<< dec
- << theData.m_sequence
+ << int_type(theData.m_sequence)
<< " is "
- << theData.m_size
+ << int_type(theData.m_size)
<< " bytes long.\n";
XALAN_USING_XERCES(XMLPlatformUtils);
1.3 +2 -0 xml-xalan/c/src/xalanc/Harness/XalanDiagnosticMemoryManager.hpp
Index: XalanDiagnosticMemoryManager.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/xalanc/Harness/XalanDiagnosticMemoryManager.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- XalanDiagnosticMemoryManager.hpp 25 Apr 2005 18:35:57 -0000 1.2
+++ XalanDiagnosticMemoryManager.hpp 6 May 2005 17:21:17 -0000 1.3
@@ -55,6 +55,8 @@
{
public:
+ typedef unsigned int int_type;
+
#if defined(XALAN_NO_STD_NAMESPACE)
typedef ostream StreamType;
#else
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org