From c22007cc4be9b731d97006b983538388c4b36033 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 10 May 2017 21:36:00 +0200 Subject: Fix warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/blind-arithm.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/blind-arithm.c') 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) { -- cgit v1.2.3-70-g09d2