cbmc: fix build with GCC 16 (#568925)

This commit is contained in:
Yohann Boniface
2026-10-01 19:31:43 +00:00
committed by GitHub

View File

@@ -94,6 +94,11 @@ stdenv.mkDerivation (finalAttrs: {
# fix "first argument in call to 'memset' is a pointer to non-trivially copyable type"
"-Wno-error=nontrivial-memcall"
]
++ lib.optionals stdenv.cc.isGNU [
"-Wno-error=unused-but-set-variable"
"-Wno-error=sfinae-incomplete"
"-Wno-error=array-bounds"
]
);
# TODO: add jbmc support
@@ -119,7 +124,10 @@ stdenv.mkDerivation (finalAttrs: {
description = "Bounded Model Checker for C and C++ programs";
homepage = "http://www.cprover.org/cbmc/";
license = lib.licenses.bsdOriginal;
maintainers = with lib.maintainers; [ jiegec ];
maintainers = with lib.maintainers; [
jiegec
mkannwischer
];
platforms = lib.platforms.unix;
};
})