From 709b4d9d8dc2d456a2209b5ef3d1aaf0f1f45a48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1draig=20Brady?= Date: Sun, 2 Feb 2020 16:24:18 +0000 Subject: build: avoid vector performance warnings in randperm * configure.ac: Add -Wno-vector-operation-performance to suppress the following gcc-9.2 error in gl/lib/randperm.c: error: vector operation will be expanded piecewise --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 54af03281..4eab50f1d 100644 --- a/configure.ac +++ b/configure.ac @@ -142,6 +142,8 @@ if test "$gl_gcc_warnings" = yes; then nw="$nw -Wunsafe-loop-optimizations" # a few src/*.c nw="$nw -Winline" # system.h's readdir_ignoring_dot_and_dotdot nw="$nw -Wsuggest-attribute=format" # warns about copy.c and factor.c + nw="$nw -Wvector-operation-performance" # warns about randperm.c + # Using -Wstrict-overflow is a pain, but the alternative is worse. # For an example, see the code that provoked this report: -- cgit v1.2.1