Skip to content

Commit

Permalink
Put ifndef around unused method for clang
Browse files Browse the repository at this point in the history
  • Loading branch information
thspeer authored and ktf committed May 14, 2014
1 parent 35bc746 commit c42056d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion RecoVertex/GhostTrackFitter/src/GhostTrackPrediction.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
using namespace reco;

namespace {
#ifndef __clang__
inline double sqr(double arg) { return arg * arg; }

#endif
typedef ROOT::Math::SMatrix<double, 3, 4> Matrix34;
typedef ROOT::Math::SMatrix<double, 4, 5> Matrix45;
typedef ROOT::Math::SMatrix<double, 5, 4> Matrix54;
Expand Down
3 changes: 2 additions & 1 deletion RecoVertex/GhostTrackFitter/src/KalmanGhostTrackUpdater.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
using namespace reco;

namespace {
#ifndef __clang__
static inline double sqr(double arg) { return arg * arg; }

#endif
using namespace ROOT::Math;

typedef SVector<double, 4> Vector4;
Expand Down
3 changes: 2 additions & 1 deletion RecoVertex/GhostTrackFitter/src/VertexGhostTrackState.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
using namespace reco;

namespace {
#ifndef __clang__
static inline double sqr(double arg) { return arg * arg; }

#endif
using namespace ROOT::Math;

typedef SVector<double, 3> Vector3;
Expand Down

0 comments on commit c42056d

Please sign in to comment.