Commit b1686a97 authored by Brian Panneton's avatar Brian Panneton

ENH: Fixed main's arguments for test to prevent warning in updated g++ compiler

parent 80287485
#include "XdmfArray.hpp"
#include "XdmfArrayType.hpp"
int main(int, char *)
int main(int, char **)
{
int values[] = {1, 2, 3, 4};
......
......@@ -3,7 +3,7 @@
#include <iostream>
int main(int, char *)
int main(int, char **)
{
//
......
#include "XdmfArray.hpp"
#include "XdmfHDF5Writer.hpp"
int main(int, char *)
int main(int, char **)
{
int values[] = {1, 2, 3, 4};
......
......@@ -3,7 +3,7 @@
#include "XdmfHDF5Controller.hpp"
#include "XdmfSystemUtils.hpp"
int main(int, char *)
int main(int, char **)
{
boost::shared_ptr<XdmfHDF5Controller> controller =
XdmfHDF5Controller::New("output.h5",
......
......@@ -2,7 +2,7 @@
#include "XdmfHDF5Controller.hpp"
#include "XdmfHDF5Writer.hpp"
int main(int, char *)
int main(int, char **)
{
boost::shared_ptr<XdmfArray> array = XdmfArray::New();
array->pushBack(0);
......
......@@ -4,7 +4,7 @@
#include "XdmfArrayType.hpp"
#include "XdmfHDF5WriterDSM.hpp"
int main(int argc, char * argv[])
int main(int argc, char *argv[])
{
MPI_Init(&argc, &argv);
......
#include "XdmfInformation.hpp"
int main(int, char *)
int main(int, char **)
{
boost::shared_ptr<XdmfInformation> information = XdmfInformation::New();
assert(information->getKey().compare("") == 0);
......
#include "XdmfAttribute.hpp"
#include "XdmfAttributeType.hpp"
int main(int, char *)
int main(int, char **)
{
// Test != and == operators
assert(XdmfAttributeType::Scalar() == XdmfAttributeType::Scalar());
......
......@@ -9,7 +9,7 @@
#include "XdmfTestCompareFiles.hpp"
int main(int, char *)
int main(int, char **)
{
boost::shared_ptr<XdmfCurvilinearGrid> grid = XdmfCurvilinearGrid::New(2,
2,
......
#include "XdmfGeometry.hpp"
#include "XdmfGeometryType.hpp"
int main(int, char *)
int main(int, char **)
{
// Test != and == operators
assert(XdmfGeometryType::XYZ() == XdmfGeometryType::XYZ());
......
......@@ -7,7 +7,7 @@
#include "XdmfTestCompareFiles.hpp"
#include "XdmfTestDataGenerator.hpp"
int main(int, char *)
int main(int, char **)
{
// Test != and == operators
assert(XdmfGridCollectionType::Spatial() ==
......
......@@ -4,7 +4,7 @@
#include "XdmfReader.hpp"
#include "XdmfWriter.hpp"
int main(int, char *)
int main(int, char **)
{
//
......
......@@ -42,7 +42,7 @@ void performTests(std::vector<boost::shared_ptr<XdmfMap> > & boundaryMaps)
*
*/
int main(int, char *)
int main(int, char **)
{
// Grid 0
boost::shared_ptr<XdmfGrid> grid0 = XdmfGrid::New();
......
......@@ -5,7 +5,7 @@
#include "XdmfTestCompareFiles.hpp"
#include "XdmfTestDataGenerator.hpp"
int main(int, char *)
int main(int, char **)
{
boost::shared_ptr<XdmfWriter> writer =
XdmfWriter::New("TestXdmfReader1.xmf");
......
......@@ -9,7 +9,7 @@
#include "XdmfTestCompareFiles.hpp"
int main(int, char *)
int main(int, char **)
{
boost::shared_ptr<XdmfArray> vx = XdmfArray::New();
vx->resize<unsigned int>(4);
......
......@@ -9,7 +9,7 @@
#include "XdmfTestCompareFiles.hpp"
int main(int, char *)
int main(int, char **)
{
boost::shared_ptr<XdmfRegularGrid> grid = XdmfRegularGrid::New(1, 1, 1,
1, 1, 1,
......
......@@ -2,7 +2,7 @@
#include "XdmfSet.hpp"
#include "XdmfSetType.hpp"
int main(int, char *)
int main(int, char **)
{
// Test != and == operators
assert(XdmfSetType::Node() == XdmfSetType::Node());
......
#include "XdmfTime.hpp"
int main(int, char *)
int main(int, char **)
{
boost::shared_ptr<XdmfTime> time = XdmfTime::New();
assert(time->getValue() == 0);
......
......@@ -6,7 +6,7 @@ void setPolyTopology(boost::shared_ptr<XdmfTopology> polyTop)
polyTop->setType(XdmfTopologyType::Polygon(6));
}
int main(int, char *)
int main(int, char **)
{
// Test != and == operators
assert(XdmfTopologyType::Hexahedron() == XdmfTopologyType::Hexahedron());
......
......@@ -9,7 +9,7 @@
#include "XdmfTestCompareFiles.hpp"
int main(int, char *)
int main(int, char **)
{
//
......
......@@ -4,7 +4,7 @@
#include "XdmfSet.hpp"
#include "XdmfTime.hpp"
int main(int, char *)
int main(int, char **)
{
boost::shared_ptr<XdmfUnstructuredGrid> grid = XdmfUnstructuredGrid::New();
std::string gridName = "Grid1";
......
......@@ -49,7 +49,7 @@ private:
int mCount;
};
int main(int, char *)
int main(int, char **)
{
boost::shared_ptr<XdmfVisitorValueCounter> visitor =
XdmfVisitorValueCounter::New();
......
......@@ -4,7 +4,7 @@
#include "XdmfTestDataGenerator.hpp"
int main(int, char *)
int main(int, char **)
{
boost::shared_ptr<XdmfWriter> writer = XdmfWriter::New("output.xmf");
......
......@@ -4,7 +4,7 @@
#include "XdmfTestDataGenerator.hpp"
int main(int, char *)
int main(int, char **)
{
boost::shared_ptr<XdmfUnstructuredGrid> grid =
XdmfTestDataGenerator::createHexahedron();
......
......@@ -5,7 +5,7 @@
#include "XdmfTestCompareFiles.hpp"
#include "XdmfTestDataGenerator.hpp"
int main(int, char *)
int main(int, char **)
{
boost::shared_ptr<XdmfWriter> writer = XdmfWriter::New("XdmfXPath1.xmf");
boost::shared_ptr<XdmfUnstructuredGrid> grid =
......
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