Skip to content

Commit c2def6e

Browse files
committed
[math] Ignore vla-cxx-extension in case veccore is active
1 parent 6ee83fe commit c2def6e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

math/mathcore/inc/Fit/FitUtil.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,9 @@ namespace FitUtil {
227227
}
228228

229229
#ifdef R__HAS_VECCORE
230+
#pragma clang diagnostic push
231+
#pragma clang diagnostic ignored "-Wvla-cxx-extension"
232+
230233
inline double ExecFunc(const IModelFunctionTempl<ROOT::Double_v> *f, const double *x, const double *p) const
231234
{
232235
// Figure out the size of the SIMD vectors.
@@ -247,6 +250,7 @@ namespace FitUtil {
247250
auto res = (*f)(xx, p);
248251
return vecCore::Get<ROOT::Double_v>(res, 0);
249252
}
253+
#pragma clang diagnostic pop
250254
#endif
251255

252256
// objects of this class are not meant to be copied / assigned

0 commit comments

Comments
 (0)