aboutsummaryrefslogtreecommitdiffstats
path: root/src/blind-arithm.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-05-10 21:36:00 +0200
committerMattias Andrée <maandree@kth.se>2017-05-10 21:37:20 +0200
commitc22007cc4be9b731d97006b983538388c4b36033 (patch)
treebabca238e7be3fbc111d62318e1f919107a37e2b /src/blind-arithm.c
parentCleaner code (diff)
downloadblind-c22007cc4be9b731d97006b983538388c4b36033.tar.gz
blind-c22007cc4be9b731d97006b983538388c4b36033.tar.bz2
blind-c22007cc4be9b731d97006b983538388c4b36033.tar.xz
Fix warnings
Signed-off-by: Mattias Andrée <maandree@kth.se>
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)
{