From f393974f54f1f751e7b9b12cda9e0f905c0caaac Mon Sep 17 00:00:00 2001 From: dramforever Date: Mon, 27 Feb 2023 22:30:25 +0800 Subject: [PATCH 1/2] libomxil-bellagio: Fix -Wstringop-truncation for GCC 12 --- pkgs/development/libraries/libomxil-bellagio/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/libomxil-bellagio/default.nix b/pkgs/development/libraries/libomxil-bellagio/default.nix index 3cfec00b132..02f60d1854f 100644 --- a/pkgs/development/libraries/libomxil-bellagio/default.nix +++ b/pkgs/development/libraries/libomxil-bellagio/default.nix @@ -24,7 +24,7 @@ stdenv.mkDerivation rec { doCheck = false; # fails env.NIX_CFLAGS_COMPILE = - if stdenv.cc.isGNU then "-Wno-error=array-bounds -Wno-error=stringop-overflow=8" + if stdenv.cc.isGNU then "-Wno-error=array-bounds -Wno-error=stringop-overflow=8 -Wno-error=stringop-truncation" else "-Wno-error=absolute-value -Wno-error=enum-conversion -Wno-error=logical-not-parentheses -Wno-error=non-literal-null-conversion"; meta = with lib; { From 3e66561470ed54b54d6c27c7c456dca114636347 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Wed, 22 Mar 2023 12:44:07 +0100 Subject: [PATCH 2/2] libomxil-bellagio: explain the compiler warning better --- pkgs/development/libraries/libomxil-bellagio/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/libraries/libomxil-bellagio/default.nix b/pkgs/development/libraries/libomxil-bellagio/default.nix index 02f60d1854f..83e0450f318 100644 --- a/pkgs/development/libraries/libomxil-bellagio/default.nix +++ b/pkgs/development/libraries/libomxil-bellagio/default.nix @@ -24,6 +24,7 @@ stdenv.mkDerivation rec { doCheck = false; # fails env.NIX_CFLAGS_COMPILE = + # stringop-truncation: see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1028978 if stdenv.cc.isGNU then "-Wno-error=array-bounds -Wno-error=stringop-overflow=8 -Wno-error=stringop-truncation" else "-Wno-error=absolute-value -Wno-error=enum-conversion -Wno-error=logical-not-parentheses -Wno-error=non-literal-null-conversion";