Skip to content
Snippets Groups Projects
Commit 122fd1ab authored by wenqing's avatar wenqing Committed by Tom Fischer
Browse files

Remov more warnings when g++ is used

parent 769e5a9b
No related branches found
No related tags found
No related merge requests found
...@@ -72,14 +72,14 @@ MeshLib::Mesh* RapidVtuInterface::readVTUFile(const std::string &file_name) ...@@ -72,14 +72,14 @@ MeshLib::Mesh* RapidVtuInterface::readVTUFile(const std::string &file_name)
rapidxml::xml_node<>* root_node (doc.first_node()); rapidxml::xml_node<>* root_node (doc.first_node());
if (isVTKUnstructuredGrid(root_node)) if (isVTKUnstructuredGrid(root_node))
{ {
bool is_compressed(false); // bool is_compressed = (false); // this variable is not used only be set once below
//check if content is compressed //check if content is compressed
const rapidxml::xml_attribute<>* compressor (root_node->first_attribute("compressor")); const rapidxml::xml_attribute<>* compressor (root_node->first_attribute("compressor"));
if (compressor ) if (compressor )
{ {
if (std::string(compressor->value()).compare("vtkZLibDataCompressor") == 0) if (std::string(compressor->value()).compare("vtkZLibDataCompressor") == 0)
{ {
is_compressed = true; //is_compressed = true; // is not used hereafter
uncompressData(root_node); uncompressData(root_node);
} }
else else
...@@ -323,7 +323,7 @@ unsigned char* RapidVtuInterface::uncompressData(const rapidxml::xml_node<>* nod ...@@ -323,7 +323,7 @@ unsigned char* RapidVtuInterface::uncompressData(const rapidxml::xml_node<>* nod
if (data_node) if (data_node)
compressed_data = data_node->value(); compressed_data = data_node->value();
return NULL; return NULL; // Does here return compressed_data?
} }
......
...@@ -362,7 +362,8 @@ unsigned char* BoostVtuInterface::uncompressData(property_tree::ptree const& com ...@@ -362,7 +362,8 @@ unsigned char* BoostVtuInterface::uncompressData(property_tree::ptree const& com
unsigned long compressed_size = strlen(compressed_data_node.data().c_str()); unsigned long compressed_size = strlen(compressed_data_node.data().c_str());
unsigned char* uncompressed_data = NULL; unsigned char* uncompressed_data = NULL;
unsigned long uncompressed_size = 0; unsigned long uncompressed_size = 0;
unsigned long result = zLibDataCompressor::UncompressBuffer(compressed_data, compressed_size, uncompressed_data, uncompressed_size); // unsigned long result =
zLibDataCompressor::UncompressBuffer(compressed_data, compressed_size, uncompressed_data, uncompressed_size);
return uncompressed_data; return uncompressed_data;
} }
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
namespace MathLib { namespace MathLib {
static
bool generateDiagPrecond (unsigned n, unsigned const*const iA, unsigned const*const jA, bool generateDiagPrecond (unsigned n, unsigned const*const iA, unsigned const*const jA,
double const*const A, double* diag) double const*const A, double* diag)
{ {
...@@ -45,7 +44,6 @@ bool generateDiagPrecond (unsigned n, unsigned const*const iA, unsigned const*co ...@@ -45,7 +44,6 @@ bool generateDiagPrecond (unsigned n, unsigned const*const iA, unsigned const*co
return true; return true;
} }
static
bool generateDiagPrecondRowSum(unsigned n, unsigned const*const iA, double const*const A, double* diag) bool generateDiagPrecondRowSum(unsigned n, unsigned const*const iA, double const*const A, double* diag)
{ {
unsigned idx; // first idx of next row unsigned idx; // first idx of next row
...@@ -66,7 +64,6 @@ bool generateDiagPrecondRowSum(unsigned n, unsigned const*const iA, double const ...@@ -66,7 +64,6 @@ bool generateDiagPrecondRowSum(unsigned n, unsigned const*const iA, double const
return true; return true;
} }
static
bool generateDiagPrecondRowMax(unsigned n, unsigned const*const iA, double const*const A, double* diag) bool generateDiagPrecondRowMax(unsigned n, unsigned const*const iA, double const*const A, double* diag)
{ {
unsigned idx; // first idx of next row unsigned idx; // first idx of next row
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment