Commit 26bed716 authored by Kenneth Leiter's avatar Kenneth Leiter

COMP: Get rid of some GCC compiler warnings.

parent 456d231f
......@@ -68,7 +68,7 @@ XdmfMap::New(const std::vector<shared_ptr<XdmfAttribute> > & globalNodeIds)
for(std::map<task_id, node_id>::const_iterator iter = currMap.begin();
iter != currMap.end();
++iter) {
if(iter->first != i) {
if(iter->first != (int)i) {
map->insert(iter->first, j, iter->second);
}
}
......
......@@ -60,7 +60,7 @@ public:
closeFile()
{
if(mHDF5Handle >= 0) {
herr_t status = H5Fclose(mHDF5Handle);
/*herr_t status =*/H5Fclose(mHDF5Handle);
mHDF5Handle = -1;
}
};
......@@ -87,8 +87,8 @@ public:
H5F_ACC_RDWR,
fapl);
hsize_t numObjects;
herr_t status = H5Gget_num_objs(mHDF5Handle,
&numObjects);
/*herr_t status = */H5Gget_num_objs(mHDF5Handle,
&numObjects);
toReturn = numObjects;
}
else {
......
......@@ -273,11 +273,14 @@ XdmfExodusWriter::write(const std::string & filePath,
if(currGrid->getTopology()->getType() ==
XdmfTopologyType::Hexahedron_27()) {
itmp[0] = *ptr;
*(ptr++) = ptr[6];
*ptr = ptr[6];
ptr++;
itmp[1] = *ptr;
*(ptr++) = ptr[3];
*ptr = ptr[3];
ptr++;
itmp[2] = *ptr;
*(ptr++) = ptr[3];
*ptr = ptr[3];
ptr++;
itmp[3] = *ptr;
for (unsigned int j=0; j<4; ++j, ++ptr) {
*ptr = itmp[j];
......
......@@ -384,7 +384,7 @@ XdmfFortran::addInformation(const char * const key,
void
XdmfFortran::addPreviousAttribute(const int attributeId)
{
if(attributeId >= mPreviousAttributes.size()) {
if(attributeId >= (int)mPreviousAttributes.size()) {
XdmfError::message(XdmfError::FATAL, "Invalid attribute id");
}
mAttributes.push_back(mPreviousAttributes[attributeId]);
......@@ -393,7 +393,7 @@ XdmfFortran::addPreviousAttribute(const int attributeId)
void
XdmfFortran::addPreviousInformation(const int informationId)
{
if(informationId >= mPreviousInformations.size()) {
if(informationId >= (int)mPreviousInformations.size()) {
XdmfError::message(XdmfError::FATAL, "Invalid information id");
}
mInformations.push_back(mPreviousInformations[informationId]);
......@@ -440,7 +440,7 @@ XdmfFortran::setGeometry(const int geometryType,
void
XdmfFortran::setPreviousGeometry(const int geometryId)
{
if(geometryId >= mPreviousGeometries.size()) {
if(geometryId >= (int)mPreviousGeometries.size()) {
XdmfError::message(XdmfError::FATAL, "Invalid geometry id");
}
mGeometry = mPreviousGeometries[geometryId];
......@@ -449,7 +449,7 @@ XdmfFortran::setPreviousGeometry(const int geometryId)
void
XdmfFortran::setPreviousTopology(const int topologyId)
{
if(topologyId >= mPreviousTopologies.size()) {
if(topologyId >= (int)mPreviousTopologies.size()) {
XdmfError::message(XdmfError::FATAL, "Invalid topology id");
}
mTopology = mPreviousTopologies[topologyId];
......
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