summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kernel
diff options
context:
space:
mode:
authorFranz Pletz <fpletz@fnordicwalking.de>2019-11-05 01:55:45 +0100
committerFranz Pletz <fpletz@fnordicwalking.de>2019-11-05 01:55:45 +0100
commitd98aee819fd2a7593f26ec7a65deff379c0f4554 (patch)
tree375af59b47c9545433b6e2386267a05ff016a181 /pkgs/os-specific/linux/kernel
parenta2ab758457c4433d91ef98177f1a5f2e9b3b1cd2 (diff)
downloadnixpkgs-d98aee819fd2a7593f26ec7a65deff379c0f4554.tar
nixpkgs-d98aee819fd2a7593f26ec7a65deff379c0f4554.tar.gz
nixpkgs-d98aee819fd2a7593f26ec7a65deff379c0f4554.tar.bz2
nixpkgs-d98aee819fd2a7593f26ec7a65deff379c0f4554.tar.lz
nixpkgs-d98aee819fd2a7593f26ec7a65deff379c0f4554.tar.xz
nixpkgs-d98aee819fd2a7593f26ec7a65deff379c0f4554.tar.zst
nixpkgs-d98aee819fd2a7593f26ec7a65deff379c0f4554.zip
linuxPackages.perf: fix build with gcc9
Diffstat (limited to 'pkgs/os-specific/linux/kernel')
-rw-r--r--pkgs/os-specific/linux/kernel/perf.nix5
1 files changed, 1 insertions, 4 deletions
diff --git a/pkgs/os-specific/linux/kernel/perf.nix b/pkgs/os-specific/linux/kernel/perf.nix
index 1e5c987d508..21615f62a3d 100644
--- a/pkgs/os-specific/linux/kernel/perf.nix
+++ b/pkgs/os-specific/linux/kernel/perf.nix
@@ -50,10 +50,7 @@ stdenv.mkDerivation {
       "-Wno-error=bool-compare"
       "-Wno-error=deprecated-declarations"
       "-DOBJDUMP_PATH=\"${binutils}/bin/objdump\""
-    ]
-    # gcc before 6 doesn't know these options
-    ++ stdenv.lib.optionals (hasPrefix "gcc-6" stdenv.cc.cc.name) [
-      "-Wno-error=unused-const-variable" "-Wno-error=misleading-indentation"
+      "-Wno-error=stringop-truncation"
     ];
 
   doCheck = false; # requires "sparse"