From 0ee3873ce485fa0903f41aa7a657b4813548f953 Mon Sep 17 00:00:00 2001 From: Ingo Weyrich Date: Mon, 28 Oct 2019 13:35:46 +0100 Subject: [PATCH] fix clang warning --- rtengine/guidedfilter.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rtengine/guidedfilter.cc b/rtengine/guidedfilter.cc index feb108198..70807424a 100644 --- a/rtengine/guidedfilter.cc +++ b/rtengine/guidedfilter.cc @@ -66,7 +66,12 @@ void guidedFilter(const array2D &guide, const array2D &src, array2 enum Op {MUL, DIVEPSILON, SUBMUL}; const auto apply = +#ifdef _OPENMP [multithread, epsilon](Op op, array2D &res, const array2D &a, const array2D &b, const array2D &c=array2D()) -> void +#else + // removed multithread to fix clang warning on msys2 clang builds, which don't support OpenMp + [epsilon](Op op, array2D &res, const array2D &a, const array2D &b, const array2D &c=array2D()) -> void +#endif { const int w = res.width(); const int h = res.height();