]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: avoid vector performance warnings in randperm
authorPádraig Brady <P@draigBrady.com>
Sun, 2 Feb 2020 16:24:18 +0000 (16:24 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 3 Feb 2020 19:38:02 +0000 (19:38 +0000)
* 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

index 54af03281e2f1e5c8e674c657c68fbc585afa315..4eab50f1d0e8646e868a4b85e2d0d3b86c829131 100644 (file)
@@ -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: