Skip to content

Commit 7cd63cf

Browse files
committed
GCC14 compat: Ignore several warnings
It looks like nixpkgs-unstable now uses GCC14, which converted several warnings to errors (https://gcc.gnu.org/gcc-14/porting_to.html#warnings-as-errors). Athena code is very crufty, so we still need to treat them as warnings.
1 parent 0e87c58 commit 7cd63cf

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

pkgs/discuss.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ in stdenv.mkDerivation {
1616
hash = "sha256-0WPz6OeeIAd/c8zUD00f0gDhYwO3ll9qPENxqPTjPhk=";
1717
};
1818

19+
env = {
20+
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration -Wno-error=implicit-int -Wno-error=return-mismatch";
21+
};
22+
1923
meta = with lib; {
2024
description = "Project Athena forum system";
2125
homepage = "https://github.com/mit-athena/discuss";

pkgs/moira.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ in stdenv.mkDerivation rec {
2020
};
2121
sourceRoot = "source/moira";
2222

23+
env = {
24+
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration -Wno-error=implicit-int -Wno-error=return-mismatch";
25+
};
26+
2327
meta = with lib; {
2428
description = "Athena Service Management system";
2529
homepage = "https://github.com/mit-athena/moira";

0 commit comments

Comments
 (0)