Skip to content

Commit

Permalink
Remove unused variables from lambdas
Browse files Browse the repository at this point in the history
This will remove clang warnings.
  • Loading branch information
Dr15Jones committed Dec 14, 2018
1 parent 95578aa commit 4f0664c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
12 changes: 8 additions & 4 deletions RecoVertex/PrimaryVertexProducer/src/DAClusterizerInZT_vect.cc
Expand Up @@ -214,9 +214,9 @@ double DAClusterizerInZT_vect::update(double beta, track_t & gtracks,
return ZTemp;
};

auto kernel_calc_normalization = [ beta, nv ] (const unsigned int track_num,
track_t & tks_vec,
vertex_t & y_vec ) {
auto kernel_calc_normalization = [ nv ] (const unsigned int track_num,
track_t & tks_vec,
vertex_t & y_vec ) {
auto tmp_trk_pi = tks_vec.pi_[track_num];
auto o_trk_Z_sum = 1./tks_vec.Z_sum_[track_num];
auto o_trk_err_z = tks_vec.dz2_[track_num];
Expand Down Expand Up @@ -274,7 +274,11 @@ double DAClusterizerInZT_vect::update(double beta, track_t & gtracks,
}

// now update z, t, and pk
auto kernel_calc_zt = [ sumpi, nv, this, useRho0 ] (vertex_t & vertices ) -> double {
auto kernel_calc_zt = [ sumpi, nv
#ifdef VI_DEBUG
, this
#endif
] (vertex_t & vertices ) -> double {

double delta=0;

Expand Down
Expand Up @@ -230,7 +230,11 @@ double DAClusterizerInZ_vect::update(double beta, track_t & gtracks,
}

// now update z and pk
auto kernel_calc_z = [ sumpi, nv, this, useRho0 ] (vertex_t & vertices ) -> double {
auto kernel_calc_z = [ sumpi, nv
#ifdef VI_DEBUG
, this
#endif
] (vertex_t & vertices ) -> double {

double delta=0;
// does not vectorizes
Expand Down

0 comments on commit 4f0664c

Please sign in to comment.