Commit 848412fc authored by Kenneth Leiter's avatar Kenneth Leiter

COMP: Remove some warnings.

parent e579eeee
...@@ -666,7 +666,6 @@ XdmfArray::populateItem(const std::map<std::string, std::string> & itemPropertie ...@@ -666,7 +666,6 @@ XdmfArray::populateItem(const std::map<std::string, std::string> & itemPropertie
{ {
XdmfItem::populateItem(itemProperties, childItems, reader); XdmfItem::populateItem(itemProperties, childItems, reader);
std::string contentVal; std::string contentVal;
unsigned int sizeVal = 1;
const shared_ptr<const XdmfArrayType> arrayType = const shared_ptr<const XdmfArrayType> arrayType =
XdmfArrayType::New(itemProperties); XdmfArrayType::New(itemProperties);
......
...@@ -216,7 +216,7 @@ XdmfHDF5Writer::write(XdmfArray & array, ...@@ -216,7 +216,7 @@ XdmfHDF5Writer::write(XdmfArray & array,
// Overwriting - dataset rank must remain the same (hdf5 constraint) // Overwriting - dataset rank must remain the same (hdf5 constraint)
hid_t dataspace = H5Dget_space(dataset); hid_t dataspace = H5Dget_space(dataset);
const int ndims = H5Sget_simple_extent_ndims(dataspace); const unsigned int ndims = H5Sget_simple_extent_ndims(dataspace);
if(ndims != current_dims.size()) if(ndims != current_dims.size())
XdmfError::message(XdmfError::FATAL, \ XdmfError::message(XdmfError::FATAL, \
"Data set rank different -- ndims != " "Data set rank different -- ndims != "
......
...@@ -48,8 +48,8 @@ public: ...@@ -48,8 +48,8 @@ public:
mHeavyDataWriter(heavyDataWriter), mHeavyDataWriter(heavyDataWriter),
mLastXPathed(false), mLastXPathed(false),
mLightDataLimit(100), mLightDataLimit(100),
mStream(stream),
mMode(Default), mMode(Default),
mStream(stream),
mWriteXPaths(true), mWriteXPaths(true),
mXMLCurrentNode(NULL), mXMLCurrentNode(NULL),
mXMLDocument(NULL), mXMLDocument(NULL),
......
...@@ -487,7 +487,7 @@ namespace { ...@@ -487,7 +487,7 @@ namespace {
toReturnSet->initialize(set->getArrayType(), toReturnSet->initialize(set->getArrayType(),
set->getSize()); set->getSize());
for(int i=0; i<set->getSize(); ++i) { for(unsigned int i=0; i<set->getSize(); ++i) {
const unsigned int nodeId = set->getValue<unsigned int>(i); const unsigned int nodeId = set->getValue<unsigned int>(i);
std::map<unsigned int, unsigned int>::const_iterator iter = std::map<unsigned int, unsigned int>::const_iterator iter =
oldIdToNewId.find(nodeId); oldIdToNewId.find(nodeId);
...@@ -928,4 +928,5 @@ XdmfTopologyConverter::convert(const shared_ptr<XdmfUnstructuredGrid> gridToConv ...@@ -928,4 +928,5 @@ XdmfTopologyConverter::convert(const shared_ptr<XdmfUnstructuredGrid> gridToConv
"Cannot convert topology type in " "Cannot convert topology type in "
"XdmfTopologyConverter::convert"); "XdmfTopologyConverter::convert");
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment