diff --git a/roofit/roofitcore/inc/RooFit/Detail/MathFuncs.h b/roofit/roofitcore/inc/RooFit/Detail/MathFuncs.h index 1f5e935fd4f5d..37e969ab78d85 100644 --- a/roofit/roofitcore/inc/RooFit/Detail/MathFuncs.h +++ b/roofit/roofitcore/inc/RooFit/Detail/MathFuncs.h @@ -177,7 +177,7 @@ template double constraintSum(DoubleArray comp, unsigned int compSize) { double sum = 0; - #ifdef __CLING__ + #if defined(__CLING__) && defined(ROOFIT_CLAD) #pragma clad checkpoint loop #endif for (unsigned int i = 0; i < compSize; i++) {