diff options
author | Vladimír Čunát <v@cunat.cz> | 2023-02-05 14:56:47 +0100 |
---|---|---|
committer | Vladimír Čunát <v@cunat.cz> | 2023-02-05 15:29:43 +0100 |
commit | 555f300879332a5989c1130b8e78bf8bdbac20ea (patch) | |
tree | c945d3def2ca90d81dd12eff8c024e92a2248898 /pkgs/os-specific/linux/ocf-resource-agents | |
parent | 39c285eb4f1f6706bb4d07bd7cb3afc798412f1e (diff) |
treewide: another round of gcc12 fixups
Diffstat (limited to 'pkgs/os-specific/linux/ocf-resource-agents')
-rw-r--r-- | pkgs/os-specific/linux/ocf-resource-agents/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/ocf-resource-agents/default.nix b/pkgs/os-specific/linux/ocf-resource-agents/default.nix index 8d7f2b527144a..976c5f1779d78 100644 --- a/pkgs/os-specific/linux/ocf-resource-agents/default.nix +++ b/pkgs/os-specific/linux/ocf-resource-agents/default.nix @@ -42,6 +42,11 @@ let python3 ]; + NIX_CFLAGS_COMPILE = lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12") [ + # Needed with GCC 12 but breaks on darwin (with clang) or older gcc + "-Wno-error=maybe-uninitialized" + ]; + meta = with lib; { homepage = "https://github.com/ClusterLabs/resource-agents"; description = "Combined repository of OCF agents from the RHCS and Linux-HA projects"; |