From: Pádraig Brady
Date: Sun, 2 Feb 2020 16:24:18 +0000 (+0000) Subject: build: avoid vector performance warnings in randperm X-Git-Tag: v8.32~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=709b4d9d8dc2d456a2209b5ef3d1aaf0f1f45a48;p=thirdparty%2Fcoreutils.git 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 --- diff --git a/configure.ac b/configure.ac index 54af03281e..4eab50f1d0 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: