commit 656e1bb4ae491bc88c7ddbbc16c5b30a0eda4f1a
parent 9f515953678d5429e80a2a32c1f0177c35c8e4bc
Author: [email protected] <[email protected]>
Date: Thu, 24 Nov 2022 07:10:05 +0000
Supress Wpass-failed warning
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/include/kfr/cometa/string.hpp b/include/kfr/cometa/string.hpp
@@ -552,6 +552,10 @@ template <size_t dims>
CMT_INTRINSIC bool increment_indices(std::array<size_t, dims>& indices, const std::array<size_t, dims>& stop)
{
indices[dims - 1] += 1;
+ CMT_PRAGMA_GNU(clang diagnostic push)
+#if CMT_HAS_WARNING("-Wpass-failed")
+ CMT_PRAGMA_GNU(clang diagnostic ignored "-Wpass-failed")
+#endif
CMT_LOOP_UNROLL
for (int i = dims - 1; i >= 0;)
{
@@ -566,6 +570,7 @@ CMT_INTRINSIC bool increment_indices(std::array<size_t, dims>& indices, const st
}
indices[i] += 1;
}
+ CMT_PRAGMA_GNU(clang diagnostic pop)
return true;
}
} // namespace details