Skip to content

Commit

Permalink
#659: Eliminate unused (member/capture) variables that Clang 7 warns …
Browse files Browse the repository at this point in the history
…about
  • Loading branch information
Phil Miller committed Feb 3, 2020
1 parent 3117953 commit c1a59c7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion examples/collection_insert.cc
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ int main(int argc, char** argv) {
for (int i = range.x()/2; i < range.x(); i++) {
proxy[i].insert(i % 2);
}
proxy.finishedInserting([proxy]{
proxy.finishedInserting([]{
::fmt::print("insertions are finished2\n");
});
});
Expand Down
3 changes: 1 addition & 2 deletions examples/jacobi2d_vt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ struct LinearPb2DJacobi : vt::Collection<LinearPb2DJacobi,Index2D> {
size_t numObjsX_ = 1, numObjsY_ = 1;
size_t numRowsPerObject_ = default_nrow_object;
size_t maxIter_ = 5;
double normRes_ = 0.0;

public:

Expand All @@ -106,7 +105,7 @@ struct LinearPb2DJacobi : vt::Collection<LinearPb2DJacobi,Index2D> {
msgReceived_(0), totalReceive_(0),
numObjsX_(1), numObjsY_(1),
numRowsPerObject_(default_nrow_object),
maxIter_(5), normRes_(0.0)
maxIter_(5)
{ }


Expand Down
4 changes: 1 addition & 3 deletions examples/reduce.cc
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,12 @@ struct Integration1D : vt::Collection<Integration1D,Index1D> {

size_t numObjs_ = default_num_objs;
size_t numPartsPerObject_ = default_nparts_object;
double quadValue = 0.0;

public:

explicit Integration1D()
: vt::Collection<Integration1D, Index1D>(),
numObjs_(default_num_objs), numPartsPerObject_(default_nparts_object),
quadValue(0.0)
numObjs_(default_num_objs), numPartsPerObject_(default_nparts_object)
{ }

//
Expand Down
3 changes: 0 additions & 3 deletions examples/simple_collection_reduce.cc
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ struct TestColl : Collection<TestColl,Index1D> {
rmsg->getVal() = 10;
proxy.reduce<collective::PlusOp<int>>(rmsg.get(),cb);
}

private:
int32_t counter_ = 0;
};

int main(int argc, char** argv) {
Expand Down

0 comments on commit c1a59c7

Please sign in to comment.