diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-05-10 21:36:00 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-05-10 21:37:20 +0200 |
| commit | c22007cc4be9b731d97006b983538388c4b36033 (patch) | |
| tree | babca238e7be3fbc111d62318e1f919107a37e2b /src/blind-arithm.c | |
| parent | Cleaner code (diff) | |
| download | blind-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.c | 9 |
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) { |
