Skip to content

Commit

Permalink
efivar: disable warnings on gcc13
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Joseph committed Nov 19, 2023
1 parent 48eb833 commit 421e8c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/tools/system/efivar/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ stdenv.mkDerivation rec {
})
];

env = lib.optionalAttrs (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.cc.version "13") {
NIX_CFLAGS_COMPILE = "-w";
};

nativeBuildInputs = [ pkg-config mandoc ];
buildInputs = [ popt ];
depsBuildBuild = [ buildPackages.stdenv.cc ];
Expand Down

0 comments on commit 421e8c9

Please sign in to comment.