From c42056dabadd2440c321fac075f8efa225ddccd0 Mon Sep 17 00:00:00 2001 From: Thomas Speer Date: Wed, 14 May 2014 17:24:42 +0200 Subject: [PATCH] Put ifndef around unused method for clang --- RecoVertex/GhostTrackFitter/src/GhostTrackPrediction.cc | 3 ++- RecoVertex/GhostTrackFitter/src/KalmanGhostTrackUpdater.cc | 3 ++- RecoVertex/GhostTrackFitter/src/VertexGhostTrackState.cc | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/RecoVertex/GhostTrackFitter/src/GhostTrackPrediction.cc b/RecoVertex/GhostTrackFitter/src/GhostTrackPrediction.cc index e38139f481ddb..adeaca15389ff 100644 --- a/RecoVertex/GhostTrackFitter/src/GhostTrackPrediction.cc +++ b/RecoVertex/GhostTrackFitter/src/GhostTrackPrediction.cc @@ -17,8 +17,9 @@ using namespace reco; namespace { +#ifndef __clang__ inline double sqr(double arg) { return arg * arg; } - +#endif typedef ROOT::Math::SMatrix Matrix34; typedef ROOT::Math::SMatrix Matrix45; typedef ROOT::Math::SMatrix Matrix54; diff --git a/RecoVertex/GhostTrackFitter/src/KalmanGhostTrackUpdater.cc b/RecoVertex/GhostTrackFitter/src/KalmanGhostTrackUpdater.cc index 159182184bf78..ee89f4a9dd7f4 100644 --- a/RecoVertex/GhostTrackFitter/src/KalmanGhostTrackUpdater.cc +++ b/RecoVertex/GhostTrackFitter/src/KalmanGhostTrackUpdater.cc @@ -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 Vector4; diff --git a/RecoVertex/GhostTrackFitter/src/VertexGhostTrackState.cc b/RecoVertex/GhostTrackFitter/src/VertexGhostTrackState.cc index 55df7b4c98ff0..f1a1a88dab005 100644 --- a/RecoVertex/GhostTrackFitter/src/VertexGhostTrackState.cc +++ b/RecoVertex/GhostTrackFitter/src/VertexGhostTrackState.cc @@ -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 Vector3;