aboutsummaryrefslogtreecommitdiffstats
path: root/src/blind-arithm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/blind-arithm.c')
-rw-r--r--src/blind-arithm.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/blind-arithm.c b/src/blind-arithm.c
index 1c2c11b..5dc3cd9 100644
--- a/src/blind-arithm.c
+++ b/src/blind-arithm.c
@@ -31,6 +31,11 @@ typedef void (*process_func)(struct stream *left, struct stream *right, size_t n
rh = ((TYPE *)(right->buf + i))[CHI],\
(ALGO)), 0) : 0)
+#if defined(__GNUC__) && !defined(__clang__)
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wunsafe-loop-optimizations"
+#endif
+
#define X(NAME, ALGO, PIXFMT, TYPE)\
static void\
process_##PIXFMT##_##NAME(struct stream *left, struct stream *right, size_t n)\
@@ -48,6 +53,10 @@ LIST_OPERATORS(xyza, double,)
LIST_OPERATORS(xyzaf, float, f)
#undef X
+#if defined(__GNUC__) && !defined(__clang__)
+# pragma GCC diagnostic pop
+#endif
+
static process_func
get_process_xyza(const char *operation)
{