Skip to content

Commit 4eb2e8f

Browse files
authored
[RF] avoid unknown pragma warning when clad is disabled
1 parent 33f0cd1 commit 4eb2e8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roofit/roofitcore/inc/RooFit/Detail/MathFuncs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ template <typename DoubleArray>
177177
double constraintSum(DoubleArray comp, unsigned int compSize)
178178
{
179179
double sum = 0;
180-
#ifdef __CLING__
180+
#if defined(__CLING__) && defined(ROOFIT_CLAD)
181181
#pragma clad checkpoint loop
182182
#endif
183183
for (unsigned int i = 0; i < compSize; i++) {

0 commit comments

Comments
 (0)