Skip to content

Compiling with cadical needs a flag to turn off optional compiler warnings #7725

@martinlester

Description

@martinlester

CBMC version: 5.83.0
Operating system: Debian 12
Exact command line resulting in the issue: cmake -S . -Bbuild -Dsat_impl="cadical" ; cmake --build build
What behaviour did you expect: Successful compilation with cadical as SAT solver.
What happened instead: Compilation error.

Lots of errors like this:

solver.cpp:259:3: error: ‘nonnull’ argument ‘this’ compared to NULL [-Werror=nonnull-compare]

I can work around this by configuring with something like this instead:

cmake -S . -Bbuild -DCMAKE_CXX_FLAGS="-Wnonnull-compare"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions