[MOAB-dev] commit/MOAB: tautges: Removing compiler warnings.
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Mar 12 11:07:02 CDT 2014
1 new commit in MOAB:
https://bitbucket.org/fathomteam/moab/commits/f253c376259a/
Changeset: f253c376259a
Branch: deformed-mesh-remap
User: tautges
Date: 2014-03-12 17:06:53
Summary: Removing compiler warnings.
Affected #: 2 files
diff --git a/test/parallel/par_coupler_test.cpp b/test/parallel/par_coupler_test.cpp
index 6ec3143..b0d7c06 100644
--- a/test/parallel/par_coupler_test.cpp
+++ b/test/parallel/par_coupler_test.cpp
@@ -139,8 +139,8 @@ int main(int argc, char **argv)
if (!dbgFile.empty()) {
std::stringstream dfname;
dfname << dbgFile << rank << ".txt";
- std::freopen(dfname.str().c_str(), "a", stdout);
- std::freopen(dfname.str().c_str(), "a", stderr);
+ if (!std::freopen(dfname.str().c_str(), "a", stdout)) return false;
+ if (!std::freopen(dfname.str().c_str(), "a", stderr)) return false;
}
// create MOAB instance based on that
diff --git a/tools/mbcoupler/datacoupler_test.cpp b/tools/mbcoupler/datacoupler_test.cpp
index b39ca0e..35b7810 100644
--- a/tools/mbcoupler/datacoupler_test.cpp
+++ b/tools/mbcoupler/datacoupler_test.cpp
@@ -148,8 +148,8 @@ int main(int argc, char **argv)
if (!dbgFile.empty()) {
std::stringstream dfname;
dfname << dbgFile << rank << ".txt";
- std::freopen(dfname.str().c_str(), "a", stdout);
- std::freopen(dfname.str().c_str(), "a", stderr);
+ if (!std::freopen(dfname.str().c_str(), "a", stdout)) return false;
+ if (!std::freopen(dfname.str().c_str(), "a", stderr)) return false;
}
// create MOAB instance based on that
@@ -546,17 +546,17 @@ ErrorCode get_file_options(int argc, char **argv,
ErrorCode test_interpolation(Interface *mbImpl,
DataCoupler::Method method,
std::string &interpTag,
- std::string &gNormTag,
- std::string &ssNormTag,
- std::vector<const char *> &ssTagNames,
- std::vector<const char *> &ssTagValues,
- iBase_EntitySetHandle *roots,
+ std::string &/*gNormTag*/,
+ std::string &/*ssNormTag*/,
+ std::vector<const char *> &/*ssTagNames*/,
+ std::vector<const char *> &/*ssTagValues*/,
+ iBase_EntitySetHandle */*roots*/,
std::vector<ParallelComm *> &pcs,
double &instant_time,
double &pointloc_time,
double &interp_time,
- double &gnorm_time,
- double &ssnorm_time,
+ double &/*gnorm_time*/,
+ double &/*ssnorm_time*/,
double & toler)
{
assert(method >= DataCoupler::CONSTANT && method <= DataCoupler::SPECTRAL);
@@ -572,7 +572,7 @@ ErrorCode test_interpolation(Interface *mbImpl,
DataCoupler dc(mbImpl, src_elems, 0, pcs[0]);
// initialize spectral elements, if they exist
- bool specSou=false, specTar = false;
+ // bool specSou=false, specTar = false;
// result = mbc.initialize_spectral_elements((EntityHandle)roots[0], (EntityHandle)roots[1], specSou, specTar);
instant_time = timer.time_since_birth();
Repository URL: https://bitbucket.org/fathomteam/moab/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the moab-dev
mailing list