fnc: fix clang build

Use the gcc-specific option on gcc only.
This commit is contained in:
Stanisław Pitucha
2023-02-17 22:30:42 +11:00
parent a366e69a12
commit bc485d9e26
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
makeFlags = [ "PREFIX=$(out)" ];
NIX_CFLAGS_COMPILE = [
NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [
# Needed with GCC 12
"-Wno-error=maybe-uninitialized"
];