From 0a941e0b66ab86cf359d4f158bda86c9742c4b2b Mon Sep 17 00:00:00 2001 From: Vladimír Čunát Date: Sat, 10 Feb 2018 12:06:02 +0100 Subject: treewide: avoid fatal warnings from gcc7 --- pkgs/development/compilers/openjdk/7.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pkgs/development/compilers') diff --git a/pkgs/development/compilers/openjdk/7.nix b/pkgs/development/compilers/openjdk/7.nix index 372bb1532698..13f8bcfdb1de 100644 --- a/pkgs/development/compilers/openjdk/7.nix +++ b/pkgs/development/compilers/openjdk/7.nix @@ -69,7 +69,10 @@ let fontconfig perl file bootjdk ]; - NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations"; + NIX_CFLAGS_COMPILE = [ + "-Wno-error=deprecated-declarations" + "-Wno-error=format-overflow" # newly detected by gcc7 + ]; NIX_LDFLAGS = if minimal then null else "-lfontconfig -lXcursor -lXinerama"; -- cgit 1.4.1