From 14e842ec021ea18618f893fea8e7ce332f858a4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Mon, 10 Feb 2020 16:25:58 +0100 Subject: [PATCH] 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 header is deprecated and will be removed." [-Werror=cpp] 21 | #warning "The 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)") --- pkgs/development/tools/misc/openocd/default.nix | 1 + 1 file changed, 1 insertion(+) 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 ''