diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2020-02-10 16:25:58 +0100 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2020-02-10 16:27:08 +0100 |
commit | 14e842ec021ea18618f893fea8e7ce332f858a4a (patch) | |
tree | 57e9a0deb5edfb523156e935cee11dda88bb217f /pkgs/development/tools/misc/openocd/default.nix | |
parent | 60fadaa7932c49ca7a815e38c2a0d7de372b2883 (diff) | |
download | nixpkgs-14e842ec021ea18618f893fea8e7ce332f858a4a.tar nixpkgs-14e842ec021ea18618f893fea8e7ce332f858a4a.tar.gz nixpkgs-14e842ec021ea18618f893fea8e7ce332f858a4a.tar.bz2 nixpkgs-14e842ec021ea18618f893fea8e7ce332f858a4a.tar.lz nixpkgs-14e842ec021ea18618f893fea8e7ce332f858a4a.tar.xz nixpkgs-14e842ec021ea18618f893fea8e7ce332f858a4a.tar.zst nixpkgs-14e842ec021ea18618f893fea8e7ce332f858a4a.zip |
openocd: fix build with new glibc
Fixes this build error: In file included from src/helper/options.c:38: /nix/store/dl4h1p847f2rsrsfvlmm6cxxx7q21kxj-glibc-2.30-dev/include/sys/sysctl.h:21:2: error: #warning "The <sys/sysctl.h> header is deprecated and will be removed." [-Werror=cpp] 21 | #warning "The <sys/sysctl.h> header is deprecated and will be removed." | ^~~~~~~ cc1: all warnings being treated as errors Fixes: 48a997cd ("Merge #66528: glibc: 2.27 -> 2.30 (into staging)")
Diffstat (limited to 'pkgs/development/tools/misc/openocd/default.nix')
-rw-r--r-- | pkgs/development/tools/misc/openocd/default.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/openocd/default.nix b/pkgs/development/tools/misc/openocd/default.nix index 7e141270904..7ebf4a1e065 100644 --- a/pkgs/development/tools/misc/openocd/default.nix +++ b/pkgs/development/tools/misc/openocd/default.nix @@ -40,6 +40,7 @@ stdenv.mkDerivation rec { "-Wno-format-overflow" "-Wno-error=tautological-compare" "-Wno-error=array-bounds" + "-Wno-error=cpp" ]); postInstall = lib.optionalString stdenv.isLinux '' |